| /linux-6.15/include/net/ |
| H A D | genetlink.h | 10 #define GENLMSG_DEFAULT_SIZE (NLMSG_DEFAULT_SIZE - GENL_HDRLEN) 158 return (u8 *)info->genlhdr + GENL_HDRLEN; in genl_info_userhdr() 374 GENL_HDRLEN - in genlmsg_nlhdr() 393 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated() 412 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse() 456 nlmsg_end(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_end() 467 nlmsg_cancel(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_cancel() 572 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data() 583 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len() 592 return GENL_HDRLEN + payload; in genlmsg_msg_size()
|
| /linux-6.15/tools/accounting/ |
| H A D | procacct.c | 49 #define GENLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + GENL_HDRLEN)) 50 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 136 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
|
| H A D | getdelays.c | 37 #define GENLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + GENL_HDRLEN)) 38 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 129 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | genetlink.h | 19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr)) macro
|
| /linux-6.15/tools/testing/selftests/net/mptcp/ |
| H A D | pm_nl_ctl.c | 53 nh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in init_genl_req() 143 msg_len = nh->nlmsg_len - NLMSG_LENGTH(GENL_HDRLEN); in capture_events() 145 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in capture_events() 256 len -= NLMSG_LENGTH(GENL_HDRLEN); in genl_parse_getfamily() 264 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily() 1064 len -= NLMSG_LENGTH(GENL_HDRLEN); in print_addrs() 1066 GENL_HDRLEN); in print_addrs() 1200 len -= NLMSG_LENGTH(GENL_HDRLEN); in print_limits() 1202 GENL_HDRLEN); in print_limits()
|
| /linux-6.15/net/handshake/ |
| H A D | tlshd.c | 64 struct nlattr *head = nlmsg_attrdata(info->nlhdr, GENL_HDRLEN); in tls_handshake_remote_peerids() 65 int rem, len = nlmsg_attrlen(info->nlhdr, GENL_HDRLEN); in tls_handshake_remote_peerids()
|
| /linux-6.15/net/tipc/ |
| H A D | netlink_compat.c | 155 hdr_len = nlmsg_total_size(GENL_HDRLEN + TIPC_GENL_HDRLEN); in tipc_tlv_alloc() 215 err = nlmsg_parse_deprecated(cb.nlh, GENL_HDRLEN, attrbuf, in __tipc_nl_compat_dumpit() 227 err = nlmsg_parse_deprecated(nlmsg, GENL_HDRLEN, in __tipc_nl_compat_dumpit() 1303 msg.req = nlmsg_data(req_nlh) + GENL_HDRLEN + TIPC_GENL_HDRLEN; in tipc_nl_compat_recv() 1314 msg.req_size = nlmsg_attrlen(req_nlh, GENL_HDRLEN + TIPC_GENL_HDRLEN); in tipc_nl_compat_recv() 1330 len = nlmsg_total_size(GENL_HDRLEN + TIPC_GENL_HDRLEN); in tipc_nl_compat_recv()
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | netlink.c | 253 struct nlattr *na = (struct nlattr *)((void *)gnl + GENL_HDRLEN); in parse_genl_family_id() 270 .nh.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN), in libbpf_netlink_resolve_genl_family_id() 409 struct nlattr *na = (struct nlattr *)((void *)gnl + GENL_HDRLEN); in parse_xdp_features() 484 req.nh.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in bpf_xdp_query()
|
| /linux-6.15/tools/testing/selftests/nci/ |
| H A D | nci_dev.c | 21 #define GENLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + GENL_HDRLEN)) 22 #define GENLMSG_PAYLOAD(glh) (NLMSG_PAYLOAD(glh, 0) - GENL_HDRLEN) 122 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd_mt_nla()
|
| /linux-6.15/fs/nfsd/ |
| H A D | nfsctl.c | 1624 nlmsg_for_each_attr(attr, info->nlhdr, GENL_HDRLEN, rem) { in nfsd_nl_threads_set_doit() 1639 nlmsg_for_each_attr(attr, info->nlhdr, GENL_HDRLEN, rem) { in nfsd_nl_threads_set_doit() 1785 nlmsg_for_each_attr(attr, info->nlhdr, GENL_HDRLEN, rem) { in nfsd_nl_version_set_doit() 1943 nlmsg_for_each_attr(attr, info->nlhdr, GENL_HDRLEN, rem) { in nfsd_nl_listener_set_doit() 2005 nlmsg_for_each_attr(attr, info->nlhdr, GENL_HDRLEN, rem) { in nfsd_nl_listener_set_doit()
|
| /linux-6.15/net/netlink/ |
| H A D | genetlink.c | 899 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + in genlmsg_put() 909 return (char *) hdr + GENL_HDRLEN; in genlmsg_put() 1171 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
|
| /linux-6.15/net/core/ |
| H A D | drop_monitor.c | 564 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_packet_report_size() 758 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_hw_packet_report_size()
|
| /linux-6.15/net/batman-adv/ |
| H A D | netlink.c | 163 struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype); in batadv_netlink_get_ifindex()
|
| /linux-6.15/net/devlink/ |
| H A D | health.c | 717 #define DEVLINK_FMSG_MAX_SIZE (GENLMSG_DEFAULT_SIZE - GENL_HDRLEN - NLA_HDRLEN)
|
| /linux-6.15/drivers/block/drbd/ |
| H A D | drbd_nl.c | 3221 const unsigned hdrlen = GENL_HDRLEN + GENL_MAGIC_FAMILY_HDRSZ; in find_cfg_context_attr() 3978 const unsigned hdrlen = GENL_HDRLEN + GENL_MAGIC_FAMILY_HDRSZ; in drbd_adm_get_status_all()
|
| /linux-6.15/drivers/scsi/ |
| H A D | pmcraid.c | 1410 (total_size + (GENL_HDRLEN + in pmcraid_notify_aen()
|
| /linux-6.15/net/netfilter/ipvs/ |
| H A D | ip_vs_ctl.c | 3614 …if (nlmsg_parse_deprecated(cb->nlh, GENL_HDRLEN, attrs, IPVS_CMD_ATTR_MAX, ip_vs_cmd_policy, cb->e… in ip_vs_genl_dump_dests()
|
| /linux-6.15/net/wireless/ |
| H A D | nl80211.c | 1022 GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_prepare_wdev_dump() 3164 GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_dump_wiphy_parse() 11961 GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_testmode_dump() 15251 GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_prepare_vendor_dump()
|