[PATCH 0/2] libudev: Get all sysfs attrs for a device

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux