OSDN Git Service

(split) LDP: Update drafts based on LDP v3.40.
[linuxjm/LDP_man-pages.git] / draft / man4 / cpuid.4
1 .\" Copyright (c) 2009 Intel Corporation, Author Andi Kleen
2 .\" Description based on comments in arch/x86/kernel/cpuid.c
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH CPUID 4 2009\-03\-31 Linux "Linux Programmer's Manual"
30 .SH 名前
31 cpuid \- x86 CPUID access device
32 .SH 説明
33 CPUID provides an interface for querying information about the x86 CPU.
34
35 This device is accessed by \fBlseek (2)\fP or \fBpread (2)\fP to the appropriate
36 CPUID level and reading in chunks of 16 bytes.  A larger read size means
37 multiple reads of consecutive levels.
38
39 The lower 32 bits of the file position is used as the incoming \fI%eax\fP, and
40 the upper 32 bits of the file position as the incoming \fI%ecx\fP, the latter
41 intended for "counting" \fIeax\fP levels like \fIeax=4\fP.
42
43 This driver uses \fI/dev/cpu/CPUNUM/cpuid\fP, where \fICPUNUM\fP is the minor
44 number, and on an SMP box will direct the access to CPU \fICPUNUM\fP as listed
45 in \fI/proc/cpuinfo\fP.
46
47 This file is protected so that it can only be read by the user \fIroot\fP, or
48 members of the group \fIroot\fP.
49 .SH 注意
50 The CPUID instruction can be directly executed by a program using inline
51 assembler.  However this device allows convenient access to all CPUs without
52 changing process affinity.
53
54 Most of the information in \fIcpuid\fP is reported by the kernel in cooked form
55 either in \fI/proc/cpuinfo\fP or through subdirectories in
56 \fI/sys/devices/system/cpu\fP.  Direct CPUID access through this device should
57 only be used in exceptional cases.
58
59 The \fIcpuid\fP driver is not auto\-loaded.  On modular kernels you might need
60 to use the following command to load it explicitly before use:
61
62      $ \fImodprobe cpuid\fP
63
64 There is no support for CPUID functions that require additional input
65 registers.
66
67 Very old x86 CPUs don't support CPUID.
68 .SH 関連項目
69 Intel Corporation, Intel 64 and IA\-32 Architectures Software Developer's
70 Manual Volume 2A: Instruction Set Reference, A\-M, 3\-180 CPUID reference.
71
72 Intel Corporation, Intel Processor Identification and the CPUID Instruction,
73 Application note 485.
74 .SH この文書について
75 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
76 である。プロジェクトの説明とバグ報告に関する情報は
77 http://www.kernel.org/doc/man\-pages/ に書かれている。