Searched refs:attrbuf (Results 1 – 5 of 5) sorted by relevance
/linux/net/tipc/ |
H A D | netlink_compat.c | 188 struct nlattr **attrbuf; in __tipc_nl_compat_dumpit() local 205 attrbuf = kcalloc(tipc_genl_family.maxattr + 1, in __tipc_nl_compat_dumpit() 207 if (!attrbuf) { in __tipc_nl_compat_dumpit() 212 info.info.attrs = attrbuf; in __tipc_nl_compat_dumpit() 215 err = nlmsg_parse_deprecated(cb.nlh, GENL_HDRLEN, attrbuf, in __tipc_nl_compat_dumpit() 228 attrbuf, in __tipc_nl_compat_dumpit() 235 err = (*cmd->format)(msg, attrbuf); in __tipc_nl_compat_dumpit() 253 kfree(attrbuf); in __tipc_nl_compat_dumpit() 334 struct nlattr **attrbuf; in __tipc_nl_compat_doit() local 341 attrbuf = kmalloc_array(tipc_genl_family.maxattr + 1, in __tipc_nl_compat_doit() [all …]
|
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | netlink.c | 141 char attrbuf[MAX_PAYLOAD]; in __add_veth() member 204 char attrbuf[MAX_PAYLOAD]; in __ip_addr_add() member 251 char attrbuf[MAX_PAYLOAD]; in __ip_route_add() member 313 char attrbuf[MAX_PAYLOAD]; in __link_set_up() member 355 char attrbuf[MAX_PAYLOAD]; in __add_vrf() member
|
/linux/net/netlink/ |
H A D | genetlink.c | 934 struct nlattr **attrbuf; in genl_family_rcv_msg_attrs_parse() local 940 attrbuf = kmalloc_array(ops->maxattr + 1, in genl_family_rcv_msg_attrs_parse() 942 if (!attrbuf) in genl_family_rcv_msg_attrs_parse() 945 err = __nlmsg_parse(nlh, hdrlen, attrbuf, ops->maxattr, ops->policy, in genl_family_rcv_msg_attrs_parse() 948 kfree(attrbuf); in genl_family_rcv_msg_attrs_parse() 951 return attrbuf; in genl_family_rcv_msg_attrs_parse() 954 static void genl_family_rcv_msg_attrs_free(struct nlattr **attrbuf) in genl_family_rcv_msg_attrs_free() argument 956 kfree(attrbuf); in genl_family_rcv_msg_attrs_free() 1089 struct nlattr **attrbuf; in genl_family_rcv_msg_doit() local 1093 attrbuf = genl_family_rcv_msg_attrs_parse(family, nlh, extack, in genl_family_rcv_msg_doit() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | ipsec.c | 314 char attrbuf[MAX_PAYLOAD]; in veth_add() member 364 char attrbuf[MAX_PAYLOAD]; in ip4_addr_set() member 404 char attrbuf[MAX_PAYLOAD]; in link_set_up() member 431 char attrbuf[MAX_PAYLOAD]; in ip4_route_set() member 921 char attrbuf[MAX_PAYLOAD]; in xfrm_state_add() member 1009 char attrbuf[MAX_PAYLOAD]; in xfrm_state_check() member 1017 char attrbuf[MAX_PAYLOAD]; in xfrm_state_check() member 1103 char attrbuf[MAX_PAYLOAD]; in xfrm_policy_add() member 1178 char attrbuf[MAX_PAYLOAD]; in xfrm_policy_del() member 1228 char attrbuf[MAX_PAYLOAD]; in xfrm_state_del() member [all …]
|
/linux/net/wireless/ |
H A D | nl80211.c | 985 struct nlattr **attrbuf) in nl80211_prepare_wdev_dump() argument 992 if (!attrbuf) { in nl80211_prepare_wdev_dump() 993 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), in nl80211_prepare_wdev_dump() 995 if (!attrbuf) in nl80211_prepare_wdev_dump() 997 attrbuf_free = attrbuf; in nl80211_prepare_wdev_dump() 1002 attrbuf, nl80211_fam.maxattr, in nl80211_prepare_wdev_dump() 1011 attrbuf); in nl80211_prepare_wdev_dump() 10614 struct nlattr **attrbuf; in nl80211_dump_scan() local 10619 attrbuf = kcalloc(NUM_NL80211_ATTR, sizeof(*attrbuf), GFP_KERNEL); in nl80211_dump_scan() 10620 if (!attrbuf) in nl80211_dump_scan() [all …]
|