Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!munnari.oz.au!metro!news From: albert@ee.su.oz.au (Albert Hirawan) Newsgroups: comp.unix.internals Subject: help on unix file reference count Keywords: unix, kernel, refcnt Message-ID: <1990Sep10.065113.2852@metro.ucc.su.OZ.AU> Date: 10 Sep 90 06:51:13 GMT Sender: Albert Hirawan Reply-To: albert@ee.su.oz.au (Albert Hirawan) Organization: Electrical Engineering, The University of Sydney, Australia Lines: 25 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 -------------------------------------------------------------------------------