Lines Matching refs:mem
2279 void *mem; in sock_kmalloc() local
2284 mem = kmalloc(size, priority); in sock_kmalloc()
2285 if (mem) in sock_kmalloc()
2286 return mem; in sock_kmalloc()
2297 static inline void __sock_kfree_s(struct sock *sk, void *mem, int size, in __sock_kfree_s() argument
2300 if (WARN_ON_ONCE(!mem)) in __sock_kfree_s()
2303 kfree_sensitive(mem); in __sock_kfree_s()
2305 kfree(mem); in __sock_kfree_s()
2309 void sock_kfree_s(struct sock *sk, void *mem, int size) in sock_kfree_s() argument
2311 __sock_kfree_s(sk, mem, size, false); in sock_kfree_s()
2315 void sock_kzfree_s(struct sock *sk, void *mem, int size) in sock_kzfree_s() argument
2317 __sock_kfree_s(sk, mem, size, true); in sock_kzfree_s()
3352 void sk_get_meminfo(const struct sock *sk, u32 *mem) in sk_get_meminfo() argument
3354 memset(mem, 0, sizeof(*mem) * SK_MEMINFO_VARS); in sk_get_meminfo()
3356 mem[SK_MEMINFO_RMEM_ALLOC] = sk_rmem_alloc_get(sk); in sk_get_meminfo()
3357 mem[SK_MEMINFO_RCVBUF] = READ_ONCE(sk->sk_rcvbuf); in sk_get_meminfo()
3358 mem[SK_MEMINFO_WMEM_ALLOC] = sk_wmem_alloc_get(sk); in sk_get_meminfo()
3359 mem[SK_MEMINFO_SNDBUF] = READ_ONCE(sk->sk_sndbuf); in sk_get_meminfo()
3360 mem[SK_MEMINFO_FWD_ALLOC] = sk->sk_forward_alloc; in sk_get_meminfo()
3361 mem[SK_MEMINFO_WMEM_QUEUED] = READ_ONCE(sk->sk_wmem_queued); in sk_get_meminfo()
3362 mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc); in sk_get_meminfo()
3363 mem[SK_MEMINFO_BACKLOG] = READ_ONCE(sk->sk_backlog.len); in sk_get_meminfo()
3364 mem[SK_MEMINFO_DROPS] = atomic_read(&sk->sk_drops); in sk_get_meminfo()