Re: Allocating pages for process

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

 



Have you used __pa() and __va() fucntions??

Important point to be taken care is .

Allocating contiguous memory(pci_alloc_consistent is very much
advisable) 
reserve the vm area, which your going to use it.

Iqbal.







On Tue, 2003-01-21 at 04:54, John Navil Joseph wrote:
> Hi,
> 
> I am trying to create a new virtual memory area for a process (struct vm_area_struct)
> that is not mapped to a file (ie, vma->vm_file = NULL).
> 
> I already managed to create a VMA by mapping a file using the do_mmap() function similiar to what is 
> done in SYSV IPC shared memory implementation.
> 
> But i dont want to create a VMA by memory mapping a file. 
> 
> I want to allocate physical pages by using alloc_pages() and associating those pages with the 
> the VMA that I created. 
> 
> i know how to create a VMA and add it to the process address space, i also know how to allocate physical pages.
> 
> but not sure of how to setup the physical-virtual page mappings..
> 
> could anyone tell me what i am missing here and kernel functions for doing the same.
> 
> 	john
> 
> 
> 
> 


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