Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\acct.c Create Date:2022-07-28 11:00:55
Last Modify:2020-03-17 15:14:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check the amount of free space and suspend/resume accordingly.

Proto:static int check_free_space(struct bsd_acct_struct *acct)

Type:int

Parameter:

TypeParameterName
struct bsd_acct_struct *acct
105  If ime_is_after_jiffies(a) return true if a is after jiffies (needcheck) Then Go to out
109  If vfs_statfs( & f_path, & sbuf) Then Go to out
112  If active Then
113  suspend = f_blocks *
114  do_div() is NOT a C function(suspend, 100)
115  If f_bavail <= suspend Then
116  active = 0
117  pr_info("Process accounting paused\n")
119  Else
120  resume = f_blocks * >foo% free space - resume
121  do_div() is NOT a C function(resume, 100)
122  If f_bavail >= resume Then
123  active = 1
124  pr_info("Process accounting resumed\n")
128  needcheck = jiffies + second timeout between checks * HZ
129  out :
130  Return active
Caller
NameDescribe
do_acct_process