函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\acct.c Create Date:2022-07-27 12:01:58
Last Modify:2020-03-17 15:14:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check the amount of free space and suspend/resume accordingly.

函数原型:static int check_free_space(struct bsd_acct_struct *acct)

返回类型:int

参数:

类型参数名称
struct bsd_acct_struct *acct
105  如果ime_is_after_jiffies(a) return true if a is after jiffies (needcheck)则转到:out
109  如果vfs_statfs( & f_path, & sbuf)则转到:out
112  如果active
113  suspend等于f_blocks
114  do_div() is NOT a C function(suspend, 100)
115  如果f_bavail小于等于suspend
116  active等于0
117  打印信息("Process accounting paused\n")
119  否则
120  resume等于f_blocks>foo% free space - resume
121  do_div() is NOT a C function(resume, 100)
122  如果f_bavail大于等于resume
123  active等于1
124  打印信息("Process accounting resumed\n")
128  needcheck等于jiffies second timeout between checks HZ
129  out :
130  返回:active
调用者
名称描述
do_acct_process