Home
last modified time | relevance | path

Searched refs:nl_cb (Results 1 – 8 of 8) sorted by relevance

/linux/tools/lib/thermal/
H A Dthermal_nl.h19 struct nl_cb *cb_cmd;
20 struct nl_cb *cb_event;
21 struct nl_cb *cb_sampling;
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
146 struct nl_cb *cb; in nl_thermal_connect()
167 *nl_cb = cb; in nl_thermal_connect()
178 void nl_thermal_disconnect(struct nl_sock *nl_sock, struct nl_cb *nl_cb) in nl_thermal_disconnect() argument
182 nl_cb_put(nl_cb); 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()
201 int nl_subscribe_thermal(struct nl_sock *nl_sock, struct nl_cb *nl_cb, in nl_subscribe_thermal() argument
[all …]
/linux/tools/power/x86/intel-speed-select/
H A Dhfi-events.c51 struct nl_cb *nl_cb; member
88 struct nl_cb *cb; in send_and_recv_msgs()
91 cb = nl_cb_clone(drv->nl_cb); in send_and_recv_msgs()
247 struct nl_cb *cb; in hfi_main()
268 drv.nl_cb = cb = nl_cb_alloc(NL_CB_DEFAULT); in hfi_main()
269 if (drv.nl_cb == NULL) { in hfi_main()
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c72 struct nl_cb *nl_cb; member
143 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs()
210 ctx->nl_cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_ctx_alloc_flags()
211 if (!ctx->nl_cb) { in nl_ctx_alloc_flags()
216 nl_socket_set_cb(ctx->nl_sock, ctx->nl_cb); in nl_ctx_alloc_flags()
246 nl_cb_put(ctx->nl_cb); in nl_ctx_free()
317 nl_cb_err(ctx->nl_cb, NL_CB_CUSTOM, ovpn_nl_cb_error, &status); in ovpn_nl_msg_send()
318 nl_cb_set(ctx->nl_cb, NL_CB_FINISH, NL_CB_CUSTOM, ovpn_nl_cb_finish, in ovpn_nl_msg_send()
320 nl_cb_set(ctx->nl_cb, NL_CB_ACK, NL_CB_CUSTOM, ovpn_nl_cb_ack, &status); in ovpn_nl_msg_send()
323 nl_cb_set(ctx->nl_cb, NL_CB_VALID, NL_CB_CUSTOM, cb, ctx); in ovpn_nl_msg_send()
[all …]
/linux/net/netlabel/
H A Dnetlabel_calipso.c37 struct netlink_callback *nl_cb; member
222 data = genlmsg_put(cb_arg->skb, NETLINK_CB(cb_arg->nl_cb->skb).portid, in netlbl_calipso_listall_cb()
261 cb_arg.nl_cb = cb; in netlbl_calipso_listall()
H A Dnetlabel_cipso_v4.c36 struct netlink_callback *nl_cb; member
619 data = genlmsg_put(cb_arg->skb, NETLINK_CB(cb_arg->nl_cb->skb).portid, in netlbl_cipsov4_listall_cb()
658 cb_arg.nl_cb = cb; in netlbl_cipsov4_listall()
H A Dnetlabel_mgmt.c43 struct netlink_callback *nl_cb; member
483 data = genlmsg_put(cb_arg->skb, NETLINK_CB(cb_arg->nl_cb->skb).portid, in netlbl_mgmt_listall_cb()
520 cb_arg.nl_cb = cb; in netlbl_mgmt_listall()
H A Dnetlabel_unlabeled.c94 struct netlink_callback *nl_cb; member
1069 data = genlmsg_put(cb_arg->skb, NETLINK_CB(cb_arg->nl_cb->skb).portid, in netlbl_unlabel_staticlist_gen()
1169 cb_arg.nl_cb = cb; in netlbl_unlabel_staticlist()
1254 cb_arg.nl_cb = cb; in netlbl_unlabel_staticlistdef()