Home
last modified time | relevance | path

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

/openbmc/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.c113 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 …]
/openbmc/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()
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 …]
/openbmc/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()
322 rnet->nl_sock = nls; in rdma_nl_net_init()
328 netlink_kernel_release(rnet->nl_sock); in rdma_nl_net_exit()
H A Dcore_priv.h67 struct sock *nl_sock; member
/openbmc/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()
/openbmc/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);
/openbmc/phosphor-networkd/src/
H A Dncsi_util.cpp81 using nlSocketPtr = std::unique_ptr<nl_sock, decltype(&::nl_socket_free)>;
/openbmc/linux/Documentation/userspace-api/
H A Dvduse.rst53 struct nl_sock *nlsock;