From: Greg KH <gregkh@suse.de>
To: linux-kernel@vger.kernel.org
Subject: Re: fsnotify & sysfs
Date: Sun, 12 Dec 2010 08:45:39 -0800 [thread overview]
Message-ID: <20101212164539.GB14167@suse.de> (raw)
In-Reply-To: <20101212124247.GA14450@gundam.enneenne.com>
On Sun, Dec 12, 2010 at 01:42:47PM +0100, Rodolfo Giometti wrote:
> Hello,
>
> I know that a sysfs file may be pollable but I'm asking to myself how
> it could be difficult adding notifying support also.
>
> Maybe adding a call to the fsnotify subsystem within the
> sysfs_notify() function as follow can do the trick?
Perhaps, does that work?
> However my problem is how to get the struct dentry pointer needed by
> fsnotify_change() related to the struct sysfs_dirent pointer passed to
> sysfs_notify(). :(
Yup, that's a problem :(
> Can you please give me any advice about to solve it?
>
> Another question: in file linux/fs/sysfs/file.c I see:
>
> #include <linux/fsnotify.h>
>
> but none of its functions are called into file.c... maybe it's a
> mistake?
Possibly, but look at the patch that added that line, perhaps it was put
there for a reason.
thanks,
greg k-h
prev parent reply other threads:[~2010-12-12 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-12 12:42 Rodolfo Giometti
2010-12-12 16:45 ` Greg KH [this message]
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=20101212164539.GB14167@suse.de \
--to=gregkh@suse.de \
--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®