Re: How to read Page Table Entry in the linux kernel module?

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

 



I am trying to understand how can I read the pte using pte_page. Please could you explain?

On 5/28/08, Cédric Augonnet <cedric.augonnet@xxxxxxxxx> wrote:
2008/5/28 sahlot arvind <asahlot@xxxxxxxxx>:
> I am working on Linux 2.6 and inside the init function of my module I am
> doing this -
>
> -------------
> init_module ()
> {
>      va = kmalloc (4096, GFP_KERNEL);
> }
> --------------
>
> Now I want to read the page table entry for this va?
> What is the right way to do that?
> Thanks in advance
> - A
>

Hi,

Is it not the pte_page macro that you are looking for ?

Cheers,
Cédric



--
http://linuxexplained.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