Searched refs:NLGRPSZ (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/net/netlink/ |
D | af_netlink.h | 20 #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) macro 21 #define NLGRPLONGS(x) (NLGRPSZ(x)/sizeof(unsigned long))
|
D | af_netlink.c | 953 new_groups = krealloc(nlk->groups, NLGRPSZ(groups), GFP_ATOMIC); in netlink_realloc_groups() 958 memset((char *)new_groups + NLGRPSZ(nlk->ngroups), 0, in netlink_realloc_groups() 959 NLGRPSZ(groups) - NLGRPSZ(nlk->ngroups)); in netlink_realloc_groups() 2069 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in __netlink_kernel_create() 2133 if (NLGRPSZ(tbl->groups) < NLGRPSZ(groups)) { in __netlink_change_ngroups() 2134 new = kzalloc(sizeof(*new) + NLGRPSZ(groups), GFP_ATOMIC); in __netlink_change_ngroups() 2138 memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups)); in __netlink_change_ngroups() 2816 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in netlink_add_usersock_entry()
|
D | diag.c | 19 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), in sk_diag_dump_groups()
|