Home
last modified time | relevance | path

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

/tools/lib/thermal/
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,
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 …]
/tools/power/x86/intel-speed-select/
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()
/tools/testing/selftests/net/ovpn/
A Dovpn-cli.c71 struct nl_cb *nl_cb; member
142 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs()
209 ctx->nl_cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_ctx_alloc_flags()
210 if (!ctx->nl_cb) { in nl_ctx_alloc_flags()
215 nl_socket_set_cb(ctx->nl_sock, ctx->nl_cb); in nl_ctx_alloc_flags()
245 nl_cb_put(ctx->nl_cb); in nl_ctx_free()
316 nl_cb_err(ctx->nl_cb, NL_CB_CUSTOM, ovpn_nl_cb_error, &status); in ovpn_nl_msg_send()
317 nl_cb_set(ctx->nl_cb, NL_CB_FINISH, NL_CB_CUSTOM, ovpn_nl_cb_finish, in ovpn_nl_msg_send()
322 nl_cb_set(ctx->nl_cb, NL_CB_VALID, NL_CB_CUSTOM, cb, ctx); in ovpn_nl_msg_send()
1534 struct nl_cb *cb; in ovpn_get_mcast_id()
[all …]

Completed in 8 milliseconds