Re: Find PTE for a virtual address?

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

 





On Sun, Jun 27, 2010 at 10:05 PM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
On Mon, Jun 28, 2010 at 09:54, sam shepperd <samshepperd@xxxxxxxxx> wrote:
> Kindly thanks - that helps.  However the virtual address of the kernel
> symbol I am looking up in memory is not within current->mm.

I see. I think i know what you mean . Your symbol is in kernel address space. I think the mm_struct object you are looking for is init_mm . If so, in the above code I wrote, use pgd_offset_k(addr) instead of pgd_offset(mm, addr). I think that is what you are looking for. Correct me if I misunderstood you.

Venkatram Tummala

Are you sure? Theoritically, kernel address space is mapped throughout
all the task structure (e.g current->mm etc)

After all, if it's a symbol address you're looking for, have you tried
http://lxr.linux.no/linux+v2.6.34/+code=kallsyms_lookup_name and see
if it suits you?


--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com


[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