Re: Expanded CPU details report...

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

 



On Mon, 19.04.10 10:26, Darryl L. Pierce (dpierce@xxxxxxxxxx) wrote:

> In HAL it was possible to extract several pieces of information about
> the processors on a machine, such as product name ("Intel(R) Xeon(R)
> CPU E5430  @ 2.66GHz"), number of cores, the core number when peering a
> specific core, throttling capability and the like.
> 
> With udev we can only detect the number of cores by counting the
> instances of devices that report a driver of "processor".
> 
> Can we get expanded CPU details in udev, such as the processor product
> name, core count and core number (on a specific core), the processor
> flags (as seen in /proc/cpuinfo), cache size, speed, and other details?

HAL just parsed /proc/cpuinfo to get that information, and so should
you probably, too.

The best way to query the number of processers is
sysconf(_SC_NPROCESSORS_CONF).

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
--
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