Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_acct_process

Proto:static void do_acct_process(struct bsd_acct_struct *acct)

Type:void

Parameter:

TypeParameterName
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  If Not Check the amount of free space and suspend/resume accordingly. Then Go to 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. , real UID of the task )
496  Real Group ID = from_kgid_munged( user_ns the caps and keyrings are relative to. , real GID of the task )
499  LSB of Real User ID = Real User ID
500  LSB of Real Group ID = Real Group ID
517  If file_start_write_trylock(file) Then
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.
Caller
NameDescribe
acct_pin_kill
slow_acct_process