export kernel clock information to user space

Arnd Bergmann arnd at arndb.de
Wed Oct 13 07:01:17 UTC 2010


On Wednesday 13 October 2010 08:49:42 Amit Kucheria wrote:
> That is something I've been wondering about too. At the moment, tools like
> powerdebug have to periodically re-read the entire clock tree to show
> updates. AFAIK, sysfs and debugfs don't support inotify/poll/select mechanisms to
> notify changes.
> 
> It would be nice to have notification, but I don't know how hard that would
> be for a virtual filesystem.

Sysfs normally uses udev events to notify the user of changes. Not sure what
the mechanics behind this are, probably a netlink socket.

Supporting fanotify or inotify in your own file system should be very easy,
the somewhat harder part is to write the file system in the first place.

	Arnd



More information about the linaro-dev mailing list