Lines Matching refs:mem
157 u32 mem[SK_MEMINFO_VARS]; in inet_sctp_diag_fill() local
164 mem[SK_MEMINFO_WMEM_ALLOC] = amt; in inet_sctp_diag_fill()
169 mem[SK_MEMINFO_RMEM_ALLOC] = amt; in inet_sctp_diag_fill()
170 mem[SK_MEMINFO_RCVBUF] = sk->sk_rcvbuf; in inet_sctp_diag_fill()
171 mem[SK_MEMINFO_SNDBUF] = sk->sk_sndbuf; in inet_sctp_diag_fill()
172 mem[SK_MEMINFO_FWD_ALLOC] = sk->sk_forward_alloc; in inet_sctp_diag_fill()
173 mem[SK_MEMINFO_WMEM_QUEUED] = sk->sk_wmem_queued; in inet_sctp_diag_fill()
174 mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc); in inet_sctp_diag_fill()
175 mem[SK_MEMINFO_BACKLOG] = READ_ONCE(sk->sk_backlog.len); in inet_sctp_diag_fill()
176 mem[SK_MEMINFO_DROPS] = atomic_read(&sk->sk_drops); in inet_sctp_diag_fill()
178 if (nla_put(skb, INET_DIAG_SKMEMINFO, sizeof(mem), &mem) < 0) in inet_sctp_diag_fill()