kernel to user space transactions

mohan kumar (mohan_linux@yahoo.com)
Fri, 11 May 2001 10:02:44 -0700 (PDT)


hi,
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?.

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

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/