mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* opening files in /proc, and modules
@ 2001-03-08 16:01 Michael Rothwell
  2001-03-08 16:35 ` Michael Rothwell
  2001-03-08 16:39 ` Brian Gerst
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Rothwell @ 2001-03-08 16:01 UTC (permalink / raw)
  To: linux-kernel

How can I detect that open() has been called on a file in procfs that a
module provides? If I modprobe my module, open one or more if its proc
entries, then rmmod the module while the proc files are still open, then
the deletion of those entries is deferred. When I close the file(s), the
kernel oopses. I need to be able to detect open() and close() in order
to increment/decrement the reference count for my module, to prevent it
from being rmmoded when in use. Any tips?

Thanks! 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-03-08 16:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-08 16:01 opening files in /proc, and modules Michael Rothwell
2001-03-08 16:35 ` Michael Rothwell
2001-03-08 16:43   ` Alexander Viro
2001-03-08 16:48     ` Michael Rothwell
2001-03-08 16:39 ` Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®