OSDN Git Service

LDP: Address fuzzy changes (special)
[linuxjm/jm.git] / manual / LDP_man-pages / 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 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH CPUID 4 " 2019\-08\-02" Linux "Linux Programmer's Manual"
32 .SH 名前
33 cpuid \- x86 CPUID アクセスデバイス
34 .SH 説明
35 CPUID は x86 CPU に関する情報を問い合わせるためのインターフェースを提供する。
36 .PP
37 このデバイスには \fBlseek\fP(2) と \fBpread\fP(2) を使って、 適切な CPUID レベルにアクセスし、 16
38 バイトのデータを読み出す。 もっと大きな読み出しサイズを指定すると、 連続する複数のレベルが読み出される。
39 .PP
40 ファイル位置の下位 32 ビットは次の \fI%eax\fP として使用され、 ファイル位置の上位 32 ビットは次の \fI%ecx\fP として使用される。
41 後者は、 \fIeax=4\fP のように \fIeax\fP レベルを数えるのを意図したものである。
42 .PP
43 このドライバーは \fI/dev/cpu/CPUNUM/cpuid\fP を使用する。 なお \fICPUNUM\fP はマイナー番号である。 SMP マシンでは、
44 このドライバーは \fI/proc/cpuinfo\fP に載っている CPU \fICPUNUM\fP にアクセスする。
45 .PP
46 このファイルは、 ユーザー \fIroot\fP またはグループ \fIroot\fP だけが読み出しできるように保護されている。
47 .SH 注意
48 CPUID 命令はインラインアセンブラーを使ってプログラムで直接実行できる。 しかし、 このデバイスを使うことで、 プロセスの affinity
49 を変更せずにすべての CPU に便利にアクセスできる。
50 .PP
51 \fIcpuid\fP の情報のほとんどは、 \fI/proc/cpuinfo\fP か、 \fI/sys/devices/system/cpu\fP
52 のサブディレクトリ経由で読みやすい形で参照できる。 このデバイス経由で直接 CPUID にアクセスするのは例外的な場合にだけにすべきである。
53 .PP
54 \fIcpuid\fP ドライバーは自動ではロードされない。 モジュールに対応したカーネルでは、
55 使用する前に以下のコマンドを使って明示的にロードする必要がある。
56 .PP
57 .in +4n
58 .EX
59  $ modprobe cpuid
60 .EE
61 .in
62 .PP
63 追加の入力レジスターが必要な CPUID 機能はサポートされていない。
64 .PP
65 非常に古い x86 CPU では CPUID はサポートされていない。
66 .SH 関連項目
67  \fBcpuid\fP(1)
68 .PP
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 .PP
72 Intel Corporation, Intel Processor Identification and the CPUID Instruction,
73 Application note 485.
74 .SH この文書について
75 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
76 \%https://www.kernel.org/doc/man\-pages/ に書かれている。