Re: Memory Mapping Buffers smaller than page size?

2010-07-29 Thread Ravi Gupta
Hi Simon, Thanks for the quick reply. One more thing I want to ask is what if I create a dma pool (using pci_pool_create()), allocate dma buffers from that pool and then try to memory map them? will the buffers in that case will be continuous and is it possible to memory map them in a single user

Memory Mapping Buffers smaller than page size?

2010-07-28 Thread Ravi Gupta
Hi, I am new to linux device drivers development. I have created 16 buffers of size 256 bytes each(using kmalloc()) in my device driver code. I want to memory map these buffers to user space. Now is it possible to memory map these buffer(16*256 = 4096 = 1 page on 32 bit linux) into a single page

Re: Memory Mapping Buffers smaller than page size?

2010-07-28 Thread Simon Richter
Hi, On Wed, Jul 28, 2010 at 06:44:10PM +0530, Ravi Gupta wrote: I am new to linux device drivers development. I have created 16 buffers of size 256 bytes each(using kmalloc()) in my device driver code. I want to memory map these buffers to user space. Now is it possible to memory map these