Lines Matching refs:nl
51 struct mnl_socket *nl; in msg_send() local
53 nl = mnl_socket_open(NETLINK_GENERIC); in msg_send()
54 if (nl == NULL) { in msg_send()
59 ret = mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID); in msg_send()
65 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); in msg_send()
71 return nl; in msg_send()
74 static int msg_recv(struct mnl_socket *nl, mnl_cb_t callback, void *data, int seq) in msg_recv() argument
80 portid = mnl_socket_get_portid(nl); in msg_recv()
82 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); in msg_recv()
87 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf)); in msg_recv()
92 mnl_socket_close(nl); in msg_recv()
100 struct mnl_socket *nl; in msg_query() local
105 nl = msg_send(nlh); in msg_query()
106 if (!nl) in msg_query()
109 return msg_recv(nl, callback, data, seq); in msg_query()