Re: kmap query

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

 



On 9/6/05, sanjay kumar <tousanjay@xxxxxxxxxxx> wrote:

> I am writing a kernel module in which i am allocating
> pages using "alloc_pages(mask,order)" interface.
> This interface return a pointer to the first page's
> page structure.
> 

> Now to access the page data, i have to get the virtual
> address of the page using "kmap" (page can be in high
> mem zone).

The page pointer returned by the alloc_pages will already be mapped on
to the lower memory (ZONE_NORMAL)

> 
> My query is if i pass an order>0 to alloc_pages, do i
> need to "kmap" all the pages individually or mapping
> only the first page will map other pages also.
> 

AFAIK, No need to map the pages, they are already mapped if in highmemory ..... 


-- 
Fawad Lateef

--
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