问题
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