Netlink sockets and libnl - nl_recvmsgs_default returning -16 (EBUSY)
问题 I'm trying to code some basic kernel module - userspace program communication using netlink sockets (libnl on user side). Userspace program sends a message to kernel and expects a reply. Unfortunately, receiving reply fails with return value -16 (EBUSY). Interestingly enough, when I receive data from netlink socket directly, using standard system call recv on nl_socket_get_fd(sock) , everything works fine! Does anyone have an idea why this is happening? Here is the userspace code (parse_cb is