Lines Matching refs:s_fd
111 sk->s_fd = socket(AF_NETLINK, SOCK_RAW, protocol); in nl_connect()
112 if (sk->s_fd < 0) { in nl_connect()
123 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
131 err = getsockname(sk->s_fd, (struct sockaddr *) &sk->s_local, in nl_connect()
152 close(sk->s_fd); in nl_connect()
153 sk->s_fd = -1; in nl_connect()
164 if (sk->s_fd >= 0) { in nl_close()
165 close(sk->s_fd); in nl_close()
166 sk->s_fd = -1; in nl_close()
190 ret = sendto(sk->s_fd, buf, size, 0, (struct sockaddr *) in nl_sendto()
217 ret = sendmsg(sk->s_fd, hdr, 0); in nl_sendmsg()
432 n = recvmsg(sk->s_fd, &msg, flags); in nl_recv()