Re: How do I ask: How many processes have this file open now?

David Woodhouse (Dave@imladris.demon.co.uk)
Sat, 23 May 1998 14:49:11 +0200


russ@taylor.digex.net said:
> Is there a system call for a user program that will, given a filename
> (or fd), return the number of processes with that file open?

Not AFAIK.
fuser(1) does it by parsing all the cwd, fd, maps etc. entries in /proc

---- ---- ----
David Woodhouse, Robinson College, CB3 9AN, England. (+44) 0976 658355
Dave@imladris.demon.co.uk http://www.imladris.demon.co.uk
finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu