On Tue, Jul 18, 2006 at 04:03:50AM -0700, Parav Pandit wrote: > Hi, > > We allocate memory for DMA operation on PCI device using > pci_alloc_constistent(). > > I want to know how this function is boil down to the actual instruction > which locks the page in the RAM so that it cannot be paged out and dma can do > its work.
This is trivial - you can start with looking at the implementation. > > Can anybody tell me which instructions do we use to set this page entry in > TLB and page table? > What bit gets set in the PTE for this? Why do you need this page in TLB? In general you don't have to worry about _any_ memory you allocated in the kernel to be paged out. -- Eugene