How to traverse all file struct

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Mon Apr 27 12:10:52 EDT 2015


On Mon, 27 Apr 2015 15:41:31 -0000, cmqycmqy said:
> I want to travese(find out) all opened file struct

Actually, no, you don't.

> i want to find out all process that have open that file.

Hint: There's probably a faster way to do it than checking *all* open files.

You can probably do even better if you explain *why* you want to find
all processes.  If you find them, what do you intend to do?  (Again, depending
on what you're trying to do, there's probably an easier way).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150427/9bb16643/attachment.bin 


More information about the Kernelnewbies mailing list