From: "C. Scott Ananian" <cscott@laptop.org>
To: linux-kernel@vger.kernel.org
Subject: inotify and /proc?
Date: Thu, 21 Jun 2007 15:54:05 -0400 [thread overview]
Message-ID: <c6d9bea0706211254r6d457e36wfb3722880a3b4abd@mail.gmail.com> (raw)
I'd like to make a read-only /proc file which supports inotify -- that
is, the kernel can send change notifications to userland via the
inotify mechanism. I've found fsnotify_modify() (in
include/linux/fsnotify.h) which seems to do what I want, but it takes
a struct dentry * -- how can I get a dentry from a struct
proc_dir_entry and increment its ref count to keep it around? Any
help would be appreciated. Thanks!
--scott
--
( http://cscott.net/ )
next reply other threads:[~2007-06-21 19:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 19:54 C. Scott Ananian [this message]
2007-06-21 23:17 ` Arnd Bergmann
2007-06-22 22:51 ` C. Scott Ananian
2007-06-22 23:28 ` Al Viro
2007-06-25 3:12 ` Kyle Moffett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c6d9bea0706211254r6d457e36wfb3722880a3b4abd@mail.gmail.com \
--to=cscott@laptop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®