Home
last modified time | relevance | path

Searched refs:nl_msg (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c56 typedef int (*ovpn_nl_cb)(struct nl_msg *msg, void *arg);
71 struct nl_msg *nl_msg; member
204 ctx->nl_msg = nlmsg_alloc(); in nl_ctx_alloc_flags()
205 if (!ctx->nl_msg) { in nl_ctx_alloc_flags()
218 genlmsg_put(ctx->nl_msg, 0, 0, ctx->ovpn_dco_id, 0, flags, cmd, 0); in nl_ctx_alloc_flags()
221 NLA_PUT_U32(ctx->nl_msg, OVPN_A_IFINDEX, ovpn->ifindex); in nl_ctx_alloc_flags()
226 nlmsg_free(ctx->nl_msg); in nl_ctx_alloc_flags()
245 nlmsg_free(ctx->nl_msg); in nl_ctx_free()
295 static int ovpn_nl_cb_finish(struct nl_msg (*msg)__always_unused, in ovpn_nl_cb_finish()
304 static int ovpn_nl_cb_ack(struct nl_msg (*msg)__always_unused, in ovpn_nl_cb_ack()
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py118 def __init__(self, nl_msg):
119 self.nl_msg = nl_msg
120 self.error = -nl_msg.error
125 extack = self.nl_msg.extack.copy() if self.nl_msg.extack else {}
353 for nl_msg in nms:
354 if nl_msg.error:
355 raise YnlException(f"Netlink error: {nl_msg.error}")
356 if nl_msg
104 __init__(self, nl_msg) global() argument
364 __init__(self, nl_msg) global() argument
394 _decode(self, nl_msg) global() argument
397 decode(self, ynl, nl_msg, op) global() argument
430 _decode(self, nl_msg) global() argument
[all...]
/linux/tools/power/x86/intel-speed-select/
H A Dhfi-events.c56 static int ack_handler(struct nl_msg *msg, void *arg) in ack_handler()
63 static int finish_handler(struct nl_msg *msg, void *arg) in finish_handler()
78 static int seq_check_handler(struct nl_msg *msg, void *arg) in seq_check_handler()
84 struct nl_msg *msg, in send_and_recv_msgs()
85 int (*valid_handler)(struct nl_msg *, void *), in send_and_recv_msgs() argument
122 static int family_handler(struct nl_msg *msg, void *arg) in family_handler()
155 struct nl_msg *msg; in nl_get_multicast_id()
190 static int handle_event(struct nl_msg *n, void *arg) in handle_event()
/linux/tools/lib/thermal/
H A Dthermal_nl.c19 static int nl_seq_check_handler(struct nl_msg *msg, void *arg) in nl_seq_check_handler()
35 static int nl_finish_handler(struct nl_msg *msg, void *arg) in nl_finish_handler()
45 static int nl_ack_handler(struct nl_msg *msg, void *arg) in nl_ack_handler()
55 int nl_send_msg(struct nl_sock *sock, struct nl_cb *cb, struct nl_msg *msg, in nl_send_msg()
56 int (*rx_handler)(struct nl_msg *, void *), void *data) in nl_send_msg() argument
75 static int nl_family_handler(struct nl_msg *msg, void *arg) in nl_family_handler()
116 struct nl_msg *msg; in nl_get_multicast_id()
H A Dthermal_nl.h15 struct nl_msg *msg;
42 extern int nl_send_msg(struct nl_sock *sock, struct nl_cb *nl_cb, struct nl_msg *msg,
43 int (*rx_handler)(struct nl_msg *, void *),
H A Dsampling.c11 static int handle_thermal_sample(struct nl_msg *n, void *arg) in handle_thermal_sample()
/linux/tools/testing/selftests/drivers/net/
H A Dstats.py178 ksft_eq(cm.exception.nl_msg.error, -34)
179 ksft_eq(cm.exception.nl_msg.extack['bad-attr'], '.ifindex')
184 ksft_eq(cm.exception.nl_msg.error, -errno.EOPNOTSUPP)
185 ksft_eq(cm.exception.nl_msg.extack['bad-attr'], '.ifindex')
196 ksft_eq(cm.exception.nl_msg.error, -19)
197 ksft_eq(cm.exception.nl_msg.extack['bad-attr'], '.ifindex')
H A Dpsp.py169 ksft_eq(e.nl_msg.error, -errno.ENODEV)
240 ksft_eq(cm.exception.nl_msg.error, -errno.ENODEV)
267 ksft_eq(the_exception.nl_msg.extack['bad-attr'], ".dev-id")
268 ksft_eq(the_exception.nl_msg.error, -errno.EINVAL)
285 ksft_eq(the_exception.nl_msg.extack['bad-attr'], ".dev-id")
286 ksft_eq(the_exception.nl_msg.error, -errno.EINVAL)
299 ksft_eq(the_exception.nl_msg.extack['miss-type'], "dev-id")
300 ksft_eq(the_exception.nl_msg.error, -errno.EINVAL)
326 ksft_eq(the_exception.nl_msg.error, -errno.EINVAL)
376 ksft_eq(cm.exception.nl_msg.error, -errno.EOPNOTSUPP)
H A Dqueues.py109 ksft_eq(cm.exception.nl_msg.error, -errno.ENOENT)
114 ksft_eq(cm.exception.nl_msg.error, -errno.ENOENT)
H A Dhds.py210 ksft_eq(e.exception.nl_msg.error, -errno.EINVAL)
/linux/tools/testing/selftests/drivers/net/hw/
H A Dpp_alloc_fail.py73 if e.nl_msg.error == -errno.EOPNOTSUPP:
H A Drss_api.py218 ksft_eq(cm.exception.nl_msg.extack['bad-attr'], '.hkey')
414 ksft_eq(cm.exception.nl_msg.error, -errno.EBUSY)
/linux/drivers/infiniband/core/
H A Dcore_priv.h115 struct sk_buff *nl_msg; member
H A Duverbs_main.c1065 ret = nla_put_u32(res->nl_msg, RDMA_NLDEV_ATTR_UVERBS_DRIVER_ID, in ib_uverbs_get_nl_info()
/linux/Documentation/userspace-api/netlink/
H A Dintro.rst61 for (nl_msg in buffer) {
62 if (nl_msg.nlmsg_type == NLMSG_DONE)