Searched refs:s_fd (Results 1 – 3 of 3) sorted by relevance
/external/libnl/lib/ |
D | socket.c | 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() [all …]
|
D | nl.c | 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() [all …]
|
/external/libnl/include/ |
D | netlink-types.h | 65 int s_fd; member
|