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

allocate pageable memory in kernel driver



Hi,
 
I am writing a device driver in which I need to allocate large amount of memory (say the size of the physical memory). I don't care if the allocated memories are paged out (in fact I would like them to be paged out, as I won't use them often), as long as they will be paged in at the time I need to access them.
 
I understand vmalloc() would allocate up to the size of the physical memory, but all the pages won't be swapped out, so I cannot use vmalloc() for my driver, right?
 
Thanks,
 
Jason