All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Hasan Rashid <hasan@digitalpath.net>
Cc: "'Maxim Levitsky'" <maximlevitsky@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Access MSR functions in userspace?
Date: Wed, 06 Feb 2008 16:48:14 -0800	[thread overview]
Message-ID: <47AA554E.7050405@zytor.com> (raw)
In-Reply-To: <200802070037.m170b4Bb000579@terminus.zytor.com>

Hasan Rashid wrote:
> Maxim, HPA,
> 
>  I loaded the module msr.o and when I try to use wrmsr or rdmsr from the msr
> tools I get rdmsr: open: No such device. It seems like device doesn't
> register upon module load. I have created the devices on the system using
> mknod. Meaning /dev/cpu/msr is there and I changed the appropriate path in
> the msr.c(module) and wrmsr.c (utlity) file. 
> 
> What would prompt this error message?
> 

/dev/cpu/msr is bogus.  It should be /dev/cpu/0/msr etc.

Sounds like your version of udev might be out of date, or you're using 
an old kernel which doesn't communicate /dev/cpu/* to udev properly.

Revert your hacks and, if you have to create the nodes manually, use the 
MAKEDEV script included with the msr-tools.

	-hpa

       reply	other threads:[~2008-02-07  0:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200802070037.m170b4Bb000579@terminus.zytor.com>
2008-02-07  0:48 ` H. Peter Anvin [this message]
     [not found] <200802070059.m170xqHv008164@terminus.zytor.com>
2008-02-07  1:09 ` Access MSR functions in userspace? H. Peter Anvin
2008-02-06  3:29 Hasan Rashid
2008-02-06  4:00 ` Maxim Levitsky
2008-02-06  5:59   ` 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=47AA554E.7050405@zytor.com \
    --to=hpa@zytor.com \
    --cc=hasan@digitalpath.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maximlevitsky@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.