Avoid copying of data between user and kernel space and vice-versa

Posted by bala1486 on Stack Overflow See other posts from Stack Overflow or by bala1486
Published on 2010-05-03T20:59:03Z Indexed on 2010/05/04 0:58 UTC
Read the original article Hit count: 258

Filed under:
|

Hello, I am developing a active messaging protocol for parallel computation that replaces TCP/IP. My goal is to decrease the latency of a packet. Since the environment is a LAN, i can replace TCP/IP with simpler protocol to reduce the packet latency. I am not writing any device driver and i am just trying to replace the TCP/IP stack with something simpler. Now I wanted to avoid copying of a packet's data from user space to kernel space and vice-versa. I heard of the mmap(). Is it the best way to do this? If yes, it will be nice if you can give links to some examples. I am a linux newbie and i really appreciate your help.. Thank you...

Thanks, Bala

© Stack Overflow or respective owner

Related posts about linux

Related posts about mmap