albert@ee.su.oz.au (Albert Hirawan) (09/10/90)
I am writing a software that requires to find out about a file's reference count (i.e. the number of times it is being opened by processes at a particular time). Stat() and fstat() are not the solution as they only tell you about the number of hardlinks. Is there a system call that I can use to get this file reference count information? Do I have to modify the kernel and add a new system call? I would rather not touch the kernel if I can help it such as by using a few system calls (what are they, though?) to accomplish the task. Please send me email (albert@ee.su.oz.au) if you can help. A million thanks. ------------------------------------------------------------------------------- Albert Hirawan Faculty of Electrical Engineering University of Sydney N.S.W. 2006 AUSTRALIA email: albert@ee.su.oz.au -------------------------------------------------------------------------------