Searched refs:nl_sock (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/tools/lib/thermal/ |
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,
|
D | thermal_nl.c | 55 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-6.12.1/tools/testing/selftests/connector/ |
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() 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-6.12.1/drivers/infiniband/core/ |
D | netlink.c | 57 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()
|
D | core_priv.h | 67 struct sock *nl_sock; member
|
/linux-6.12.1/tools/power/x86/intel-speed-select/ |
D | hfi-events.c | 50 struct nl_sock *nl_handle; 246 struct nl_sock *sock; in hfi_main()
|
/linux-6.12.1/Documentation/networking/ |
D | l2tp.rst | 264 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-6.12.1/Documentation/userspace-api/ |
D | vduse.rst | 53 struct nl_sock *nlsock;
|