Searched refs:NLGRPSZ (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/net/netlink/ |
H A D | af_netlink.h | 21 #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) macro 22 #define NLGRPLONGS(x) (NLGRPSZ(x)/sizeof(unsigned long))
|
H A D | af_netlink.c | 956 new_groups = krealloc(nlk->groups, NLGRPSZ(groups), GFP_ATOMIC); in netlink_realloc_groups() 961 memset((char *)new_groups + NLGRPSZ(nlk->ngroups), 0, in netlink_realloc_groups() 962 NLGRPSZ(groups) - NLGRPSZ(nlk->ngroups)); in netlink_realloc_groups() 2026 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in __netlink_kernel_create() 2089 if (NLGRPSZ(tbl->groups) < NLGRPSZ(groups)) { in __netlink_change_ngroups() 2090 new = kzalloc(sizeof(*new) + NLGRPSZ(groups), GFP_ATOMIC); in __netlink_change_ngroups() 2094 memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups)); in __netlink_change_ngroups() 2837 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in netlink_add_usersock_entry()
|
H A D | diag.c | 19 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), in sk_diag_dump_groups()
|