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

Jon Lewis (jlewis@inorganic5.fdt.net)
Sat, 23 May 1998 17:19:03 -0400 (EDT)


On Sat, 23 May 1998, Russell Leighton wrote:

> Pardon my ignorance if this question is stupid but...
>
> 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?

fuser -v filename will do that...so look at the source for fuser.

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Spammers will be winnuked or
Network Administrator | drawn and quartered...whichever
Florida Digital Turnpike | is more convenient.
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____

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