I have a kernel module that communicates with userspace using Netlink, it looks like that
#define NETLINK_USER 31 struct sock *nl_sk = NULL