开发者

passing userspace buffer to kernel

开发者 https://www.devze.com 2023-03-03 21:27 出处:网络
I want to compare the performance when we copy skb from kernel to us开发者_运维技巧erspace using DMA and normal skb_copy_datagram_iovec(). I create a module to test. May anyone show me how we can crea

I want to compare the performance when we copy skb from kernel to us开发者_运维技巧erspace using DMA and normal skb_copy_datagram_iovec(). I create a module to test. May anyone show me how we can create a big buffer from userspace and pass it to my module (as tcp_recvmsg() is passed an iovec from userspace). Any suggestions are appreciated. Thanks in advance!


Write a Linux character device driver and implement the writev method. For details check out Linux Device Drivers latest edition.

0

精彩评论

暂无评论...
验证码 换一张
取 消