[lug] kernel to user space transactions

mohan kumar mohan_linux at yahoo.com
Fri May 11 11:02:44 MDT 2001

we are developing a protocol analyser. our application
needs to capture 100 mbps full duplex traffic. we have
the application in windows which does the same. we are
now trying to port it to linux. we came up with a
basic application that captures traffic. iam very
happy to say that linux was able to capture 100 mbps
full duplex traffic more ( a lot of mores :-) to be
correct) efficiantly than windows. now that we are
ready to port the application to linux, we are trying
to find the best way to transfer data to the user
space from kernel space. we tried normal blocking read
and it works fine. but we dont want to waste cycle on
transfering data to and fro kernel and user land. so
we tried some other techniques like remaping the
kernel land buffers to userland via mmap. that also
works fine. 

now we have a doubt that, like maping kernal space
buffers to user space, weather we will be able to map
user space buffers to kernel space(so that we can
write data directly from packet capture
function(registered via dev_add_pack))

so can u guys point out weather that kind of approach
will work and if so where do i start looking?.

Mohan Kumar S
Amoeba Telecom
(visit us at www.amoebatel.com)

Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices

More information about the LUG mailing list