[dtrace-discuss] all open files
Casper.Dik at Sun.COM
Casper.Dik at Sun.COM
Tue Jul 10 01:44:20 PDT 2007
>Hello Dan,
>Thanks. According to this email subject line, I think there isn't a way can
>list all open files, because some application can use other way (such as
>ioctl()) to open file, or directly open file from kernel area(such VOP_OPEN
>or other way implemented by himself) in a module,isn't it?
That is not correct; because all files opened by applications end up
as file descriptors; so they'll all end up as /proc/<pid>/fd/* and
/proc/<pid>/path/*.
The path is not always known nor can it always be known.
Casper
More information about the dtrace-discuss
mailing list