Lines Matching refs:nl_sock
29 static int nl_sock, ret_errno, tcount; variable
74 if (send(nl_sock, hdr, hdr->nlmsg_len, 0) == -1) { in send_message()
87 nl_sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); in register_proc_netlink()
89 if (nl_sock == -1) { in register_proc_netlink()
100 if (bind(nl_sock, (struct sockaddr *)&sa_nl, sizeof(sa_nl)) == -1) { in register_proc_netlink()
119 evn.data.fd = nl_sock; in register_proc_netlink()
120 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) { in register_proc_netlink()
274 close(nl_sock); in main()
276 close(nl_sock); in main()
288 close(nl_sock); in main()
290 close(nl_sock); in main()
306 close(nl_sock); in main()