Making Kernel Module and registering it as pci device driver and network device driver and accessing the module's buffer using ioctl. Possible?

本小妞迷上赌 提交于 2021-01-29 17:16:50

问题


I like to make a kernel module. And inside it I like to register it as pci and network device driver. And using ioctle from user space to access the module's buffer(in pci and network driver) and getting buffer. The buffer contains packets received in interrupt handler when packet arrives in my kernel module/device driver and the buffer is global in the module. Means it will not be inside interrupt handler for receiving packets. and in ioctl function implementation inside device driver just returning this buffer to user space

Is it possible? If not then what solution will achieve the result of accessing packets in buffer inside kernel_module/ethernet_driver from user space application.

来源:https://stackoverflow.com/questions/65704003/making-kernel-module-and-registering-it-as-pci-device-driver-and-network-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!