1 .\" Copyright (c) 2009 Intel Corporation, Author Andi Kleen
2 .\" Description based on comments in arch/x86/kernel/cpuid.c
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH cpuid 4 (date) "Linux man-pages (unreleased)"
8 cpuid \- x86 CPUID access device
10 CPUID provides an interface for querying information about the x86 CPU.
12 This device is accessed by
16 to the appropriate CPUID level and reading in chunks of 16 bytes.
17 A larger read size means multiple reads of consecutive levels.
19 The lower 32 bits of the file position is used as the incoming
21 and the upper 32 bits of the file position as the incoming
23 the latter is intended for "counting"
29 .IR /dev/cpu/CPUNUM/cpuid ,
33 and on an SMP box will direct the access to CPU
38 This file is protected so that it can be read only by the user
40 or members of the group
43 The CPUID instruction can be directly executed by a program
44 using inline assembler.
45 However this device allows convenient
46 access to all CPUs without changing process affinity.
48 Most of the information in
50 is reported by the kernel in cooked form either in
52 or through subdirectories in
53 .IR /sys/devices/system/cpu .
54 Direct CPUID access through this device should only
55 be used in exceptional cases.
59 driver is not auto-loaded.
60 On modular kernels you might need to use the following command
61 to load it explicitly before use:
69 There is no support for CPUID functions that require additional
72 Very old x86 CPUs don't support CPUID.
76 Intel Corporation, Intel 64 and IA-32 Architectures
77 Software Developer's Manual Volume 2A:
78 Instruction Set Reference, A-M, 3-180 CPUID reference.
80 Intel Corporation, Intel Processor Identification and
81 the CPUID Instruction, Application note 485.