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

mmap operation



Hi,

I have implemented a module for buffer management in the 2.0.34 linux kernel.
Now i'm using the write and read method for transfering data between the kernel
and user space. I have noticed that the overhead of these 2 operations are 
quite big, because each time a system call is invoked. So i decided to improve 
my module by implementing the mmap operation. The mmap operation works well
when mapping only one page size. But above this size, for example with an order
of at least 1, the later operation fails to work! I have noticed that above
4096 (one page) bytes the zero page is mapped instead! 
Could someone help mee solve this problem ? (i use the nopage operation in my
mmap method and cluster of 16 pages).

Thanks.
       Gilles 
-- 

--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/