开发者

User-mode and kernel driver communication

开发者 https://www.devze.com 2023-01-13 18:27 出处:网络
is there a way that an application running at user-mode can communicate with another application at the kernel mode.

is there a way that an application running at user-mode can communicate with another application at the kernel mode.

开发者_如何学C

For example, I would like to collect some infomation from the network driver and feed it some sniffer app running at user lever.

How do I proceed . Please advise.


One way to create a char/block device driver. Your application can then use regular IO calls like open, read, write, ioctl, & etc.

http://www.networkcomputing.com/unixworld/tutorial/010/010.txt.html


There's also sysfs, procfs, debugfs, netlink... char/block device is probably what you want though.

0

精彩评论

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