mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +01:00
modules: rename packages/kernel_modules to packages/lkmc
Then inside, split packages/lkmc into kernel_modules and userland, to keep userland out of the kernel_modules parent path, which makes no sense. Copy built modules and userland to the output rootfs overlay. Document Linux distro tradeoffs.
This commit is contained in:
10
packages/lkmc/netlink.h
Normal file
10
packages/lkmc/netlink.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef NETLINK_H
|
||||
#define NETLINK_H
|
||||
|
||||
/* Socket identifier, matches userland. TODO can be anything?
|
||||
* Is there a more scalable way to do it? E.g. ioctl device,
|
||||
* kernel generates one on the fly, then give it back and connect?
|
||||
* https://stackoverflow.com/questions/32898173/can-i-have-more-than-32-netlink-sockets-in-kernelspace */
|
||||
#define NETLINK_USER 31
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user