Searched refs:nlk (Results 1 – 2 of 2) sorted by relevance
/net/netlink/ |
D | af_netlink.c | 116 struct netlink_sock *nlk = nlk_sk(sk); in netlink_overrun() local 118 if (!(nlk->flags & NETLINK_RECV_NO_ENOBUFS)) { in netlink_overrun() 129 struct netlink_sock *nlk = nlk_sk(sk); in netlink_rcv_wake() local 132 clear_bit(NETLINK_CONGESTED, &nlk->state); in netlink_rcv_wake() 133 if (!test_bit(NETLINK_CONGESTED, &nlk->state)) in netlink_rcv_wake() 134 wake_up_interruptible(&nlk->wait); in netlink_rcv_wake() 194 static void **alloc_pg_vec(struct netlink_sock *nlk, in alloc_pg_vec() argument 220 struct netlink_sock *nlk = nlk_sk(sk); in netlink_set_ring() local 227 ring = tx_ring ? &nlk->tx_ring : &nlk->rx_ring; in netlink_set_ring() 231 if (atomic_read(&nlk->mapped)) in netlink_set_ring() [all …]
|
D | diag.c | 26 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_put_rings_cfg() local 29 mutex_lock(&nlk->pg_vec_lock); in sk_diag_put_rings_cfg() 30 ret = sk_diag_put_ring(&nlk->rx_ring, NETLINK_DIAG_RX_RING, nlskb); in sk_diag_put_rings_cfg() 32 ret = sk_diag_put_ring(&nlk->tx_ring, NETLINK_DIAG_TX_RING, in sk_diag_put_rings_cfg() 34 mutex_unlock(&nlk->pg_vec_lock); in sk_diag_put_rings_cfg() 47 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_dump_groups() local 49 if (nlk->groups == NULL) in sk_diag_dump_groups() 52 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), in sk_diag_dump_groups() 53 nlk->groups); in sk_diag_dump_groups() 62 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_fill() local [all …]
|