Home | History | Annotate | Download | only in tipc

Lines Matching defs:nl

51 	struct mnl_socket *nl;
53 nl = mnl_socket_open(NETLINK_GENERIC);
54 if (nl == NULL) {
59 ret = mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID);
65 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len);
71 return nl;
74 static int msg_recv(struct mnl_socket *nl, mnl_cb_t callback, void *data, int seq)
80 portid = mnl_socket_get_portid(nl);
82 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
87 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
92 mnl_socket_close(nl);
100 struct mnl_socket *nl;
105 nl = msg_send(nlh);
106 if (!nl)
109 return msg_recv(nl, callback, data, seq);
158 "Unable to get TIPC nl family id (module loaded?)\n");