Home
last modified time | relevance | path

Searched refs:gnlh (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/Documentation/networking/
Dl2tp.rst274 struct genlmsghdr *gnlh;
281 gnlh = mnl_nlmsg_put_extra_header(nlh, sizeof(*gnlh));
282 gnlh->cmd = L2TP_CMD_TUNNEL_CREATE;
283 gnlh->version = L2TP_GENL_VERSION;
284 gnlh->reserved = 0;
295 struct genlmsghdr *gnlh;
302 gnlh = mnl_nlmsg_put_extra_header(nlh, sizeof(*gnlh));
303 gnlh->cmd = L2TP_CMD_SESSION_CREATE;
304 gnlh->version = L2TP_GENL_VERSION;
305 gnlh->reserved = 0;
[all …]
/linux-6.1.9/include/net/
Dgenetlink.h389 static inline void *genlmsg_data(const struct genlmsghdr *gnlh) in genlmsg_data() argument
391 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data()
398 static inline int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument
400 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
/linux-6.1.9/tools/lib/thermal/
Dthermal_nl.c79 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in nl_family_handler() local
83 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl_family_handler()
84 genlmsg_attrlen(gnlh, 0), NULL); in nl_family_handler()
/linux-6.1.9/tools/power/x86/intel-speed-select/
Dhfi-events.c126 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local
130 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler()
131 genlmsg_attrlen(gnlh, 0), NULL); in family_handler()
/linux-6.1.9/net/core/
Ddrop_monitor.c175 struct genlmsghdr *gnlh = (struct genlmsghdr *)nlmsg_data(nlh); in reset_per_cpu_data() local
177 genlmsg_end(skb, genlmsg_data(gnlh)); in reset_per_cpu_data()
/linux-6.1.9/drivers/net/wireless/
Dmac80211_hwsim.c5508 struct genlmsghdr *gnlh; in hwsim_virtio_handle_cmd() local
5514 gnlh = nlmsg_data(nlh); in hwsim_virtio_handle_cmd()
5528 switch (gnlh->cmd) { in hwsim_virtio_handle_cmd()
5536 pr_err_ratelimited("hwsim: invalid cmd: %d\n", gnlh->cmd); in hwsim_virtio_handle_cmd()