0

Typically when a userspace process dies unnaturally, a driver's close() handler will be called. Are there other ways that the driver can be notified of a process's death?

4

1 回答 1

1

相信你会对do_exit()函数的代码感兴趣。这是在进程死亡时调用exit_files()的函数,而 exit_files()又会为打开的文件调用close()函数。快速浏览一下,这可能是通知驱动程序进程死亡的唯一方法。

于 2013-11-21T21:59:44.877 回答