linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Egerer <thomas.egerer@secunet.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH 0/2] libudev: Get all sysfs attrs for a device
Date: Thu, 03 Mar 2011 09:17:26 +0000	[thread overview]
Message-ID: <4D6F5CA6.2010905@secunet.com> (raw)

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

             reply	other threads:[~2011-03-03  9:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  9:17 Thomas Egerer [this message]
2011-03-03 14:11 ` [PATCH 0/2] libudev: Get all sysfs attrs for a device 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D6F5CA6.2010905@secunet.com \
    --to=thomas.egerer@secunet.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).