.\" Copyright (c) 2009 Intel Corporation, Author Andi Kleen .\" Some sentences copied from comments in arch/x86/kernel/msr.c .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2013 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2013-07-31, Akihiro MOTOKI .\" .TH MSR 4 2009\-03\-31 Linux "Linux Programmer's Manual" .SH 名前 msr \- x86 CPU MSR へアクセスするためのデバイス .SH 説明 \fI/dev/cpu/CPUNUM/msr\fP は x86 CPU の モデル固有レジスター (model\-specific registers; MSRs) の読み書きインターフェースを提供する。 \fICPUNUM\fP はアクセスする CPU の番号で、 \fI/proc/cpuinfo\fP に表示される値である。 レジスターアクセスは、 ファイルをオープンし、 MSR 番号分だけファイルのオフセットを変更し、 8 バイト単位での読み書きを行う形で行われる。 つまり、 8 バイトを超える I/O 転送は、同じレジスターに対する複数回の読み書きとなる。 このファイルは保護されており、 \fIroot\fP ユーザー、もしくは \fIroot\fP グループのメンバだけが読み書きできる。 .SH 注意 \fImsr\fP ドライバは自動ではロードされない。 モジュールが有効になったカーネルでは、 以下のコマンドを使って、 使用する前に明示的にドライバをロードする必要があるだろう。 $ \fImodprobe msr\fP .SH 関連項目 Intel CPU MSR の概要については Intel Corporation Intel 64 and IA\-32 Architectures Software Developer's Manual Volume 3B Appendix B を参照。 .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。