Re: inotify and /proc?

2007-06-22 Thread C. Scott Ananian
On 6/21/07, Arnd Bergmann <[EMAIL PROTECTED]> wrote: On Thursday 21 June 2007, C. Scott Ananian wrote: > 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

Re: inotify and /proc?

2007-06-22 Thread C. Scott Ananian
On 6/21/07, Arnd Bergmann [EMAIL PROTECTED] wrote: On Thursday 21 June 2007, C. Scott Ananian wrote: 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

[PATCH] update procfs-guide doc of read_func

2007-06-21 Thread C. Scott Ananian
The procfs-guide claims that 'the parameter start doesn't seem to be used anywhere in the kernel'. This is out of date. In linux/fs/proc/generic.c we find a very nice description of the parameters to read_func. The appended patch replaces the bogus description with this (as far as I know)

inotify and /proc?

2007-06-21 Thread C. Scott Ananian
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

[PATCH] update procfs-guide doc of read_func

2007-06-21 Thread C. Scott Ananian
The procfs-guide claims that 'the parameter start doesn't seem to be used anywhere in the kernel'. This is out of date. In linux/fs/proc/generic.c we find a very nice description of the parameters to read_func. The appended patch replaces the bogus description with this (as far as I know)