My mistake ... I was using readfile (usermode) instead of zwreadfile.
...
Fact is I'm working on a driver and dealing with the issue of multiple threads accessing the same file. I'm currently having problem with BSOD and it seems that is related to zwreadfile. The idea to post the question is whether it is feasible. In fact I had never dealt with this situation. The situation is that I have a driver that would store the data generated in a database.
...
Fact is I'm working on a driver and dealing with the issue of multiple threads accessing the same file. I'm currently having problem with BSOD and it seems that is related to zwreadfile. The idea to post the question is whether it is feasible. In fact I had never dealt with this situation. The situation is that I have a driver that would store the data generated in a database.