Re: matching pages with their owner processes

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

 



--- "Raghu R. Arur" <rra2002@cs.columbia.edu> wrote:

>   But i have question here.
> the function ptep_to_mm(pte_t*) gives the mm_struct 
> the page is associated to. 

The 'page' here is not the page addressed by the PTE,
but the page *containing* the PTE. (Note that the
argument to ptep_to_mm() is a pointer to PTE, not
a PTE itself).
The page containing the PTEs is allocated either from
pte_alloc_map() or pte_alloc_kernel(). page->mapping
will be NULL when the page is allocated. It is set to
the current task's mm by calling pgtable_add_rmap().


-Ravi.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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