函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void acct_collect(long exitcode, int group_dead)

返回类型:void

参数:

类型参数名称
longexitcode
intgroup_dead
535  pacct等于pacct
537  vsize等于0
539  如果group_deadmm
542  lock for reading
543  vma等于mmap
544 vma循环
548  lease a read lock
551  spin_lock_irq( & siglock)
552  如果group_deadac_mem等于vsize除1024
554  如果thread_group_leader(当前进程)则
555  ac_exitcode等于exitcode
556  如果flags按位与已调度未运行ac_flag或等于... executed fork, but did not exec
559  如果flags按位与使用超级用户权限ac_flag或等于... used super-user privileges
561  如果flags按位与Dumped core ac_flag或等于... dumped core
563  如果flags按位与Killed by a signal ac_flag或等于... was killed by a signal
566  task_cputime(当前进程, & 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)
调用者
名称描述
do_exit