Home
last modified time | relevance | path

Searched refs:NLGRPSZ (Results 1 – 3 of 3) sorted by relevance

/linux/net/netlink/
H A Daf_netlink.h21 #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) macro
22 #define NLGRPLONGS(x) (NLGRPSZ(x)/sizeof(unsigned long))
H A Daf_netlink.c945 new_groups = kzalloc(NLGRPSZ(groups), GFP_ATOMIC); in netlink_realloc_groups()
952 memcpy(new_groups, old_groups, NLGRPSZ(nlk->ngroups)); in netlink_realloc_groups()
961 * lockless readers, so that they can not read NLGRPSZ(new ngroups) in netlink_realloc_groups()
2057 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in __netlink_kernel_create()
2119 if (NLGRPSZ(tbl->groups) < NLGRPSZ(groups)) { in __netlink_change_ngroups()
2120 new = kzalloc(sizeof(*new) + NLGRPSZ(groups), GFP_ATOMIC); in __netlink_change_ngroups()
2124 memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups)); in __netlink_change_ngroups()
2886 listeners = kzalloc(sizeof(*listeners) + NLGRPSZ(groups), GFP_KERNEL); in netlink_add_usersock_entry()
H A Ddiag.c32 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(ngroups), groups); in sk_diag_dump_groups()