Re: [RFC] User Guide for Sysfs and libudev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kay Sievers
Date: Monday, May 24, 2010 - 9:43 pm

On Mon, May 24, 2010 at 20:08, Alan Ott <alan@signal11.us> wrote:

Enumeration and monitoring should be in one example, I guess -- that's
what people are supposed to do today. Before starting to enumerate,
software should subscribe to events. This makes the handle
coldplug/hotplug properly, makes it handle duplicate events properly,
and all other sorts of cases, which software should handle today.

Also "change" is not necessarily a "property" change, it can be any
event, that a device has changed its state, it will only in  a few
cases be visible in /sys. The most prominent example is "media
changed" event for SCSI devices, and we forward them to the block
device. There will never change anything in /sys before or after the
event.

Kay
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] User Guide for Sysfs and libudev, Alan Ott, (Mon May 24, 11:08 am)
Re: [RFC] User Guide for Sysfs and libudev, Kay Sievers, (Mon May 24, 9:43 pm)
Re: [RFC] User Guide for Sysfs and libudev, Alan Ott, (Thu May 27, 7:28 pm)
Re: [RFC] User Guide for Sysfs and libudev, Kay Sievers, (Fri May 28, 10:07 am)