Lines Matching refs:s_fd
98 sk->s_fd = -1; in __alloc_socket()
154 if (sk->s_fd >= 0) in nl_socket_free()
155 close(sk->s_fd); in nl_socket_free()
297 if (sk->s_fd == -1) in nl_socket_add_memberships()
306 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, in nl_socket_add_memberships()
341 if (sk->s_fd == -1) in nl_socket_drop_memberships()
350 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_DROP_MEMBERSHIP, in nl_socket_drop_memberships()
410 return sk->s_fd; in nl_socket_get_fd()
421 if (sk->s_fd == -1) in nl_socket_set_nonblocking()
424 if (fcntl(sk->s_fd, F_SETFL, O_NONBLOCK) < 0) in nl_socket_set_nonblocking()
513 if (sk->s_fd == -1) in nl_socket_set_buffer_size()
516 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_SNDBUF, in nl_socket_set_buffer_size()
521 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_RCVBUF, in nl_socket_set_buffer_size()
542 if (sk->s_fd == -1) in nl_socket_set_passcred()
545 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_PASSCRED, in nl_socket_set_passcred()
569 if (sk->s_fd == -1) in nl_socket_recv_pktinfo()
572 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_PKTINFO, in nl_socket_recv_pktinfo()