kmap query

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

 



Hi all,
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).

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.

TIA
Sanjay


	

	
		
__________________________________________________________ 
Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.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