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