LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Where is CPU located in /dev/ ? (https://www.linuxquestions.org/questions/linux-hardware-18/where-is-cpu-located-in-dev-492365/)

secretservgy 10-14-2006 10:11 AM

Where is CPU located in /dev/ ?
 
Hi, where is the CPU located and mounted on the Linux file system? For example, a mouse is at /dev/psaux, where is the cpu located in /dev/ ? Thanks

jstephens84 10-14-2006 11:11 AM

I don't think the cpu is a device that you can mount and unmount. I could be wrong on this though.

ntubski 10-14-2006 11:40 AM

The cpu is not a device you can directly read/write data like the mouse, so it is not in /dev, you can find some info on your cpu in /proc/cpuinfo
Code:

# find /dev -iname '*cpu*'
# find /proc -iname '*cpu*'
/proc/sys/vm/percpu_pagelist_fraction
/proc/cpuinfo


osor 10-14-2006 11:49 AM

If your kernel (and udev) is setup correctly, you can access /dev/cpu/microcode, /dev/cpu/*/msr, and /dev/cpu/*/cpuid.


All times are GMT -5. The time now is 05:36 AM.