Re: Access MSR functions in userspace?

From: Maxim Levitsky
Date: Tue Feb 05 2008 - 23:00:53 EST


On Wednesday, 6 February 2008 05:29:47 Hasan Rashid wrote:
> Is there a way to use RDMSR and WRMSR in userspace? I only need to write
> to one register, writing a module with a userspace piece to handle that
> seems like an over kill.
>
> TIA!


Fortunately linux have /dev/cpu/*/msr
Take look at $LINUX_SOURCES/arch/x86/kernel/msr.c to learn how to use it.

Best regards,
Maxim Levitsky
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/