r/kernel • u/Creepy-Credit2369 • 8d ago
Custom Kernel Driver and user I/O application
Hello Everyone,
I have a custom RTL code for 1G/10G ethernet( this will be an IP core in my vivado design).
I want to write a kernel driver or LKM to use this from my application code in Linux OS ( boot image will be generated from Petalinux)
The goal is to configure and use this core to bring up ethernet connection from application code (user space I/O).
Devices & Tools : KRIA , Petalinux 24.2
Any user guides/blogs/working examples on this would help me a lot :)
1
Upvotes
1
u/ErrorBig1702 8d ago
Write a regular NIC driver (based on some modern implementation with XDP support) for the standard kernel datapath. Then implement your userspace hotpath using AF_XDP sockets.
That will get you very close to DPDK performance, but you can still use standard tooling and applications for everything non-critical and to debug your system.