Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:acct_collect - collect accounting information into pacct_struct*@exitcode: task exit code*@group_dead: not 0, if this thread is the last one in the process.

Proto:void acct_collect(long exitcode, int group_dead)

Type:void

Parameter:

TypeParameterName
longexitcode
intgroup_dead
535  pacct = pacct
537  vsize = 0
539  If group_dead && mm Then
542  lock for reading
543  vma = mmap
544  When vma cycle
548  lease a read lock
551  spin_lock_irq( & siglock)
552  If group_dead Then ac_mem = vsize / 1024
554  If thread_group_leader(current process) Then
555  ac_exitcode = exitcode
556  If flags & Forked but didn't exec Then ac_flag |= ... executed fork, but did not exec
559  If flags & Used super-user privileges Then ac_flag |= ... used super-user privileges
561  If flags & Dumped core Then ac_flag |= ... dumped core
563  If flags & Killed by a signal Then ac_flag |= ... was killed by a signal
566  task_cputime(current process, & utime, & stime)
567  ac_utime += utime
568  ac_stime += stime
569  ac_minflt += min_flt
570  ac_majflt += maj_flt
571  spin_unlock_irq( & siglock)
Caller
NameDescribe
do_exit