Searched refs:sk (Results 1 - 4 of 4) sorted by relevance

/system/core/libnl_2/
H A Dsocket.c27 int nl_socket_add_membership(struct nl_sock *sk, int group) argument
29 return setsockopt(sk->s_fd, SOL_NETLINK,
36 struct nl_sock *sk; local
40 sk = (struct nl_sock *) malloc(sizeof(struct nl_sock));
41 if (!sk)
43 memset(sk, 0, sizeof(*sk));
50 sk->s_seq_next = (int) tv.tv_sec;
53 sk->s_local.nl_family = AF_NETLINK;
54 sk
71 struct nl_sock *sk = _nl_socket_alloc(); local
90 struct nl_sock *sk = _nl_socket_alloc(); local
102 nl_socket_free(struct nl_sock *sk) argument
110 nl_socket_set_buffer_size(struct nl_sock *sk, int rxbuf, int txbuf) argument
126 nl_socket_get_fd(struct nl_sock *sk) argument
131 nl_socket_set_cb(struct nl_sock *sk, struct nl_cb *cb) argument
138 nl_socket_get_cb(struct nl_sock *sk) argument
[all...]
H A Dnetlink.c29 int nl_send_auto_complete(struct nl_sock *sk, struct nl_msg *msg) argument
45 nlh->nlmsg_pid = sk->s_local.nl_pid;
48 return nl_send(sk, msg);
57 int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla, \ argument
78 msg.msg_name = (void *) &sk->s_peer;
79 msg.msg_namelen = sizeof(sk->s_peer);
87 sk_flags = fcntl(sk->s_fd, F_GETFL, 0);
88 fcntl(sk->s_fd, F_SETFL, O_NONBLOCK);
89 rc = recvmsg(sk->s_fd, &msg, 0);
91 fcntl(sk
105 nl_recvmsgs(struct nl_sock *sk, struct nl_cb *cb) argument
204 nl_send(struct nl_sock *sk, struct nl_msg *msg) argument
217 nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, struct iovec *iov, unsigned iovlen) argument
242 nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) argument
248 nl_connect(struct nl_sock *sk, int protocol) argument
[all...]
/system/core/libnl_2/genl/
H A Dgenl.c87 int genl_connect(struct nl_sock *sk) argument
89 return nl_connect(sk, NETLINK_GENERIC);
275 int genl_ctrl_resolve(struct nl_sock *sk, const char *name) argument
290 if (!genl_ctrl_alloc_cache(sk, &cache)) {
/system/bluetooth/bluedroid/
H A Dbluetooth.c142 int sk = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI); local
143 if (sk < 0) {
147 return sk;

Completed in 163 milliseconds