函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_acct_process

函数原型:static void do_acct_process(struct bsd_acct_struct *acct)

返回类型:void

参数:

类型参数名称
struct bsd_acct_struct *acct
476  file等于file
481  flim等于rlim_cur
482  rlim_cur等于RLIM_INFINITY
484  orig_cred等于verride_creds - Override the current process's subjective credentials*@new: The credentials to be assigned* Install a set of temporary override subjective credentials on the current* process, returning the old set for later reversion.
490  如果非Check the amount of free space and suspend/resume accordingly.则转到:out
493  Write an accounting entry for an exiting process* The acct_process() call is the workhorse of the process* accounting system. The struct acct is built here and then written* into the accounting file. This function should only be called from
495  Real User ID 等于from_kuid_munged( user_ns the caps and keyrings are relative to. , 进程uid)
496  Real Group ID 等于from_kgid_munged( user_ns the caps and keyrings are relative to. , 进程gid)
499  LSB of Real User ID 等于 Real User ID
500  LSB of Real Group ID 等于 Real Group ID
517  如果file_start_write_trylock(file)则
519  pos等于0
520  __kernel_write(file, & ac, sizeof(acct_t), & pos)
521  file_end_write(file)
523  out :
524  rlim_cur等于flim
525  vert_creds - Revert a temporary subjective credentials override*@old: The credentials to be restored* Revert a temporary set of override subjective credentials to an old set,* discarding the override set.
调用者
名称描述
acct_pin_kill
slow_acct_process