All of lore.kernel.org
 help / color / mirror / Atom feed
* libudev and /sys/devices/system/cpu
@ 2011-01-13 19:21 Martin Grund
  2011-01-13 19:45 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Grund @ 2011-01-13 19:21 UTC (permalink / raw)
  To: linux-hotplug

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

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

end of thread, other threads:[~2011-01-13 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 19:21 libudev and /sys/devices/system/cpu Martin Grund
2011-01-13 19:45 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.