函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-27 06:56:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_under_socket_pressure

函数原型:static inline bool mem_cgroup_under_socket_pressure(struct mem_cgroup *memcg)

返回类型:bool

参数:

类型参数名称
struct mem_cgroup *memcg
1333  如果非cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys)且tcpmem_pressure则返回:true
1335  循环
1336  如果time_before(jiffies, socket_pressure)则返回:true
1338 memcg等于parent_mem_cgroup - find the accounting parent of a memcg*@memcg: memcg whose parent to find* Returns the parent memcg, or NULL if this is the root or the memory* controller is in legacy no-hierarchy mode.循环
1339  返回:false
调用者
名称描述
sk_under_memory_pressure
tcp_under_memory_pressureptimized version of sk_under_memory_pressure() for TCP sockets