A wiki document on how to use Generic Netlink can be found here:
https://wiki.linuxfoundation.org/networking/generic_netlink_howto