All of lore.kernel.org
 help / color / mirror / Atom feed
From: ender.dai@gmail.com (Ender Dai)
To: kernelnewbies@lists.kernelnewbies.org
Subject: I need help understanding how to locate implementation of rdmsr_safe_regs() in the linux kernel
Date: Fri, 10 Jul 2015 11:17:13 -0700	[thread overview]
Message-ID: <20150710181713.GA2384@black> (raw)
In-Reply-To: <CAHPZ3JFFQXDYS4H3Xai1s34zur9ZoWGXBSdHmo+FTCuCTg3rdw@mail.gmail.com>

On Thu, Jul 09, 2015 at 08:08:21AM -0700, Marty wrote:
> I am unable to find the implementation for rdmsr_safe_regs(). lxr
> <http://lxr.free-electrons.com/ident?i=rdmsr_safe_regs> only mentions
> references and a prototype definition.
> 
> I've also manually grepped through the entire kernel source tree and have
> not been able to find where rdmsr_safe_regs is defined.

Try http://lxr.free-electrons.com/source/arch/x86/lib/msr-reg.S

If I can not grep out the definition of a function by its name, I will
try to grep with part of its name again, because most likely it is
created by a macro. In your case, I tried "grep safe_regs" under
arch/x86/ and got what you need.

  reply	other threads:[~2015-07-10 18:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09 15:08 I need help understanding how to locate implementation of rdmsr_safe_regs() in the linux kernel Marty
2015-07-10 18:17 ` Ender Dai [this message]
2015-07-10 18:46   ` Marty

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=20150710181713.GA2384@black \
    --to=ender.dai@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 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.