Home
last modified time | relevance | path

Searched refs:nl_sock (Results 1 – 9 of 9) sorted by relevance

/linux/tools/lib/thermal/
H A Dthermal_nl.h16 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,
H A Dthermal_nl.c55 int nl_send_msg(struct nl_sock *sock, struct nl_cb *cb, struct nl_msg *msg, in nl_send_msg()
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
190 mcid = nl_get_multicast_id(nl_sock, nl_cb, THERMAL_GENL_FAMILY_NAME, in nl_unsubscribe_thermal()
[all …]
/linux/tools/testing/selftests/connector/
H A Dproc_filter.c29 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()
100 if (bind(nl_sock, (struct sockaddr *)&sa_nl, sizeof(sa_nl)) == -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()
[all …]
/linux/drivers/infiniband/core/
H A Dnetlink.c57 return netlink_has_listeners(rnet->nl_sock, group); in rdma_nl_chk_listeners()
267 err = netlink_unicast(rnet->nl_sock, skb, pid, MSG_DONTWAIT); in rdma_nl_unicast()
277 err = netlink_unicast(rnet->nl_sock, skb, pid, 0); in rdma_nl_unicast_wait()
287 return nlmsg_multicast(rnet->nl_sock, skb, 0, group, flags); in rdma_nl_multicast()
323 rnet->nl_sock = nls; in rdma_nl_net_init()
329 netlink_kernel_release(rnet->nl_sock); in rdma_nl_net_exit()
H A Dcore_priv.h67 struct sock *nl_sock; member
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c70 struct nl_sock *nl_sock; member
143 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs()
177 ctx->nl_sock = nl_socket_alloc(); in nl_ctx_alloc_flags()
178 if (!ctx->nl_sock) { in nl_ctx_alloc_flags()
183 nl_socket_set_buffer_size(ctx->nl_sock, 8192, 8192); in nl_ctx_alloc_flags()
185 ret = genl_connect(ctx->nl_sock); in nl_ctx_alloc_flags()
194 setsockopt(nl_socket_get_fd(ctx->nl_sock), SOL_NETLINK, NETLINK_EXT_ACK, in nl_ctx_alloc_flags()
197 ctx->ovpn_dco_id = genl_ctrl_resolve(ctx->nl_sock, OVPN_FAMILY_NAME); in nl_ctx_alloc_flags()
216 nl_socket_set_cb(ctx->nl_sock, ctx->nl_cb); in nl_ctx_alloc_flags()
228 nl_socket_free(ctx->nl_sock); in nl_ctx_alloc_flags()
[all …]
/linux/tools/power/x86/intel-speed-select/
H A Dhfi-events.c50 struct nl_sock *nl_handle;
246 struct nl_sock *sock; in hfi_main()
/linux/Documentation/networking/
H A Dl2tp.rst264 struct nl_sock *nl_sock;
267 nl_sock = nl_socket_alloc();
268 genl_connect(nl_sock);
269 genl_id = genl_ctrl_resolve(nl_sock, L2TP_GENL_NAME);
/linux/Documentation/userspace-api/
H A Dvduse.rst53 struct nl_sock *nlsock;