简体   繁体   English

如何不在文件系统设备驱动程序中进入死锁?

[英]how to not enter deadlock in file system device driver?

i am creating file system filter driver and need to open some files to check attributes in dispatch routines.我正在创建文件系统过滤器驱动程序,需要打开一些文件来检查调度例程中的属性。 I am using ZwCreateFile().我正在使用 ZwCreateFile()。 But my dispatch routines is called at every file system request, so my ZwCreateFile() will then call again my dispatch routine.但是在每个文件系统请求时都会调用我的调度例程,因此我的 ZwCreateFile() 将再次调用我的调度例程。 What is the best method to not enter deadlock?不进入死锁的最佳方法是什么? I think using flags or something is good choice?我认为使用标志或其他东西是不错的选择?

I have tested and simple signing the flag in device extension still not changes the flag in some situations or the flag contain old data.我已经测试并简单地在设备扩展中签名标志在某些情况下仍然没有更改标志或标志包含旧数据。

Thank you谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM