Searched refs:NLGRPSZ (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/net/netlink/ |
D | af_netlink.h | 22 #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) macro 23 #define NLGRPLONGS(x) (NLGRPSZ(x)/sizeof(unsigned long))
|
D | af_netlink.c | 975 new_groups = krealloc(nlk->groups, NLGRPSZ(groups), GFP_ATOMIC); in netlink_realloc_groups() 980 memset((char *)new_groups + NLGRPSZ(nlk->ngroups), 0, in netlink_realloc_groups() 981 NLGRPSZ(groups) - NLGRPSZ(nlk->ngroups)); in netlink_realloc_groups() 2045 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in __netlink_kernel_create() 2108 if (NLGRPSZ(tbl->groups) < NLGRPSZ(groups)) { in __netlink_change_ngroups() 2109 new = kzalloc(sizeof(*new) + NLGRPSZ(groups), GFP_ATOMIC); in __netlink_change_ngroups() 2113 memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups)); in __netlink_change_ngroups() 2845 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()
|