Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-28 06:09:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sk_under_memory_pressure

Proto:static inline bool sk_under_memory_pressure(const struct sock *sk)

Type:bool

Parameter:

TypeParameterName
const struct sock *sk
1260  If Not memory_pressure Then Return false
1263  If mem_cgroup_sockets_enabled && sk_memcg && mem_cgroup_under_socket_pressure(sk_memcg) Then Return true
1267  Return Not Not memory_pressure