netlink.h 449 B

12345678910111213
  1. /* https://cirosantilli.com/linux-kernel-module-cheat#netlink-sockets */
  2. #ifndef LKMC_NETLINK_H
  3. #define LKMC_NETLINK_H
  4. /* Socket identifier, matches userland. TODO can be anything?
  5. * Is there a more scalable way to do it? E.g. ioctl device,
  6. * kernel generates one on the fly, then give it back and connect?
  7. * https://stackoverflow.com/questions/32898173/can-i-have-more-than-32-netlink-sockets-in-kernelspace */
  8. #define NETLINK_USER 31
  9. #endif