From: Maxim Levitsky <maximlevitsky@gmail.com>
To: hasan@digitalpath.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: Access MSR functions in userspace?
Date: Wed, 6 Feb 2008 06:00:35 +0200 [thread overview]
Message-ID: <200802060600.35498.maximlevitsky@gmail.com> (raw)
In-Reply-To: <3278.65.164.104.9.1202268587.squirrel@webmail.digitalpath.net>
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
next prev parent reply other threads:[~2008-02-06 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 3:29 Access MSR functions in userspace? Hasan Rashid
2008-02-06 4:00 ` Maxim Levitsky [this message]
2008-02-06 5:59 ` H. Peter Anvin
[not found] <200802070037.m170b4Bb000579@terminus.zytor.com>
2008-02-07 0:48 ` H. Peter Anvin
[not found] <200802070059.m170xqHv008164@terminus.zytor.com>
2008-02-07 1:09 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200802060600.35498.maximlevitsky@gmail.com \
--to=maximlevitsky@gmail.com \
--cc=hasan@digitalpath.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox