Re: sysfs and inotify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 13, 2009 at 04:56:19PM +0530, Prashant Bhole wrote:
> Hi,
> Can I user inotify with sysfs?

No.

> I have a kernel module which has exported its attributes in sysfs. Also, I
> have a user space program which needs to be notified about changes in
> attributes in sysfs. I tried using inotify but not working out.

See above :)

Use select to detect changes in sysfs files.  Or at the worse case, a
kobject CHANGE event, but be careful about using those, as they wake up
a lot of userspace when they are created.

Hope this helps,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux