]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/msr.4
msr.4: New page documenting x86 CPU MSR access device
[thirdparty/man-pages.git] / man4 / msr.4
CommitLineData
027ac74c
AK
1.\" Copyright (c) 2009 by Andi Kleen <andi@firstfloor.org>
2.\" Some sentences copied from comments in arch/x86/kernel/msr.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.TH MSR 4 2009-03-31 "Linux" "Linux Programmer's Manual"
25.SH NAME
26msr \- x86 CPU MSR access device
27.SH DESCRIPTION
28.I /dev/cpu/CPUNUM/msr
29provides an interface to read and write the model-specific
30registers (MSRs) of an x86 CPU.
31.I CPUNUM
32is the number of the CPU to access as listed in
33.IR /proc/cpuinfo .
34
35The register access is done by opening the file and seeking
36to the MSR number as offset in the file, and then
37reading or writing in chunks of 8 bytes.
38An I/O transfer of more than 8 bytes means multiple reads or writes
39of the same register.
40
41This file is protected so that it can only be read and written by the user
42.IR root ,
43or members of the group
44.IR root .
45.SH NOTES
46The
47.I msr
48driver is not auto-loaded.
49On modular kernels you might need to use the following command
50to load it explicitly before use:
51
52 $ \fImodprobe msr\fP
53.SH SEE ALSO
54Intel Corporation Intel 64 and IA-32 Architectures
55Software Developer's Manual Volume 3B Appendix B
56for an overview of the Intel CPU MSRs.