| title | __readmsr | Microsoft Docs | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||
| ms.date | 11/04/2016 | |||||||||
| ms.reviewer | ||||||||||
| ms.suite | ||||||||||
| ms.technology |
|
|||||||||
| ms.tgt_pltfrm | ||||||||||
| ms.topic | article | |||||||||
| f1_keywords |
|
|||||||||
| dev_langs |
|
|||||||||
| helpviewer_keywords |
|
|||||||||
| ms.assetid | 7ab1f8e8-72cb-4ce4-817d-3e728a3c9716 | |||||||||
| caps.latest.revision | 11 | |||||||||
| author | corob-msft | |||||||||
| ms.author | corob | |||||||||
| manager | ghogen | |||||||||
| translation.priority.ht |
|
|||||||||
| translation.priority.mt |
|
Microsoft Specific
Generates the rdmsr instruction, which reads the model-specific register specified by register and returns its value.
__int64 __readmsr(
int register
);
[in] register
The model specific register to read.
The value in the specified register.
| Intrinsic | Architecture |
|---|---|
__readmsr |
x86, [!INCLUDEvcprx64] |
Header file <intrin.h>
This function is only available in kernel mode, and the routine is only available as an intrinsic.
For more information, see the AMD documentation.
END Microsoft Specific