Files
linux-kernel-module-cheat/lkmc/netlink.h
Ciro Santilli 六四事件 法轮功 1cc3ee8657 rename include to lkmc
2019-05-05 00:00:00 +00:00

13 lines
456 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#netlink-sockets */
#ifndef LKMC_NETLINK_H
#define LKMC_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