Re: I need help understanding how to locate implementation of rdmsr_safe_regs() in the linux kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux