From: Martin Grund <grundprinzip@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: libudev and /sys/devices/system/cpu
Date: Thu, 13 Jan 2011 19:21:02 +0000 [thread overview]
Message-ID: <A0B1A1FD-CDA5-4333-B2CD-B686A8FBF3E9@gmail.com> (raw)
Hi,
I try to access the info stored in /sys/devices/system/cpu to gather information about available CPUs and their architecture ( cache size, levels etc). However, when enumerating over devices and subsystems using udev_enumerate_scan_devices() and udev_enumerate_scan_subsystems() the result list does not contain any entry from /sys/devices/system.
In addition, I tried to get the device using udev_device_new_from_syspath() but this was unsuccessful as well.
What is the best way to read the contents from /sys/devices/system?
Thank you very much in advance,
Martin
next reply other threads:[~2011-01-13 19:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 19:21 Martin Grund [this message]
2011-01-13 19:45 ` libudev and /sys/devices/system/cpu Greg KH
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=A0B1A1FD-CDA5-4333-B2CD-B686A8FBF3E9@gmail.com \
--to=grundprinzip@gmail.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