Searched refs:sock_privs (Results 1 – 2 of 2) sorted by relevance
662 family->sock_privs = kzalloc(sizeof(*family->sock_privs), GFP_KERNEL); in genl_sk_privs_alloc()663 if (!family->sock_privs) in genl_sk_privs_alloc()665 xa_init(family->sock_privs); in genl_sk_privs_alloc()677 xa_for_each(family->sock_privs, id, priv) in genl_sk_privs_free()680 xa_destroy(family->sock_privs); in genl_sk_privs_free()681 kfree(family->sock_privs); in genl_sk_privs_free()691 priv = xa_erase(family->sock_privs, (unsigned long) sk); in genl_sk_priv_free_by_sock()725 if (WARN_ON_ONCE(!family->sock_privs)) in __genl_sk_priv_get()727 return xa_load(family->sock_privs, (unsigned long) sk); in __genl_sk_priv_get()756 old_priv = xa_cmpxchg(family->sock_privs, (unsigned long) sk, NULL, in genl_sk_priv_get()
115 struct xarray *sock_privs; member