linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] libudev: Get all sysfs attrs for a device
@ 2011-03-03  9:17 Thomas Egerer
  2011-03-03 14:11 ` Kay Sievers
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Thomas Egerer @ 2011-03-03  9:17 UTC (permalink / raw)
  To: linux-hotplug

Hi folks,

I recently took part in writing an application using libudev to retrieve
information on devices present on a linux system. It became evident that
apparently there is no way to retrieve all possible sysfs attributes for a
particular device (the same way it is possible to get all of its properties).
The matter kept nagging me -- even though we worked our way around this using
sysfs directly -- and I decided to add a udev_device_get_sysattr_list_entry. For
this matter the behavior of udev_device_get_sysattr_value had to be modified (a
little): on first access of any sysattr, it create an list including _all_
sysfs-attributes as name (with an empty value, except for the symlinks). The
values are cached as soon as thery're requested. Negative entries do not exist
anymore.

Cheers, Thomas

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-04 22:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03  9:17 [PATCH 0/2] libudev: Get all sysfs attrs for a device Thomas Egerer
2011-03-03 14:11 ` Kay Sievers
2011-03-03 17:00 ` Martin Pitt
2011-03-03 17:15 ` Kay Sievers
2011-03-03 17:38 ` Thomas Egerer
2011-03-03 17:47 ` Kay Sievers
2011-03-04 16:06 ` Thomas Egerer
2011-03-04 22:14 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).