Searched refs:nl_sock (Results 1 – 5 of 5) sorted by relevance
| /tools/lib/thermal/ |
| A D | thermal_nl.h | 16 struct nl_sock *sk_event; 17 struct nl_sock *sk_sampling; 18 struct nl_sock *sk_cmd; 32 extern int nl_subscribe_thermal(struct nl_sock *nl_sock, struct nl_cb *nl_cb, 35 extern int nl_unsubscribe_thermal(struct nl_sock *nl_sock, struct nl_cb *nl_cb, 38 extern int nl_thermal_connect(struct nl_sock **nl_sock, struct nl_cb **nl_cb); 40 extern void nl_thermal_disconnect(struct nl_sock *nl_sock, struct nl_cb *nl_cb); 42 extern int nl_send_msg(struct nl_sock *sock, struct nl_cb *nl_cb, struct nl_msg *msg,
|
| A D | thermal_nl.c | 113 static int nl_get_multicast_id(struct nl_sock *sock, struct nl_cb *cb, in nl_get_multicast_id() 144 int nl_thermal_connect(struct nl_sock **nl_sock, struct nl_cb **nl_cb) in nl_thermal_connect() argument 147 struct nl_sock *sock; in nl_thermal_connect() 166 *nl_sock = sock; in nl_thermal_connect() 178 void nl_thermal_disconnect(struct nl_sock *nl_sock, struct nl_cb *nl_cb) in nl_thermal_disconnect() argument 180 nl_close(nl_sock); in nl_thermal_disconnect() 181 nl_socket_free(nl_sock); in nl_thermal_disconnect() 185 int nl_unsubscribe_thermal(struct nl_sock *nl_sock, struct nl_cb *nl_cb, in nl_unsubscribe_thermal() argument 195 if (nl_socket_drop_membership(nl_sock, mcid)) in nl_unsubscribe_thermal() 201 int nl_subscribe_thermal(struct nl_sock *nl_sock, struct nl_cb *nl_cb, in nl_subscribe_thermal() argument [all …]
|
| /tools/testing/selftests/connector/ |
| A D | proc_filter.c | 29 static int nl_sock, ret_errno, tcount; variable 74 if (send(nl_sock, hdr, hdr->nlmsg_len, 0) == -1) { in send_message() 87 nl_sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); in register_proc_netlink() 89 if (nl_sock == -1) { in register_proc_netlink() 119 evn.data.fd = nl_sock; in register_proc_netlink() 120 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) { in register_proc_netlink() 274 close(nl_sock); in main() 276 close(nl_sock); in main() 288 close(nl_sock); in main() 290 close(nl_sock); in main() [all …]
|
| /tools/power/x86/intel-speed-select/ |
| A D | hfi-events.c | 50 struct nl_sock *nl_handle; 246 struct nl_sock *sock; in hfi_main()
|
| /tools/testing/selftests/net/ovpn/ |
| A D | ovpn-cli.c | 69 struct nl_sock *nl_sock; member 142 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs() 176 ctx->nl_sock = nl_socket_alloc(); in nl_ctx_alloc_flags() 177 if (!ctx->nl_sock) { in nl_ctx_alloc_flags() 182 nl_socket_set_buffer_size(ctx->nl_sock, 8192, 8192); in nl_ctx_alloc_flags() 184 ret = genl_connect(ctx->nl_sock); in nl_ctx_alloc_flags() 215 nl_socket_set_cb(ctx->nl_sock, ctx->nl_cb); in nl_ctx_alloc_flags() 227 nl_socket_free(ctx->nl_sock); in nl_ctx_alloc_flags() 243 nl_socket_free(ctx->nl_sock); in nl_ctx_free() 324 nl_send_auto_complete(ctx->nl_sock, ctx->nl_msg); in ovpn_nl_msg_send() [all …]
|
Completed in 12 milliseconds