Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:encode_comp_t

Proto:static comp_t encode_comp_t(unsigned long value)

Type:comp_t

Parameter:

TypeParameterName
unsigned longvalue
319  exp = rnd = 0
320  When value > Maximum fractional value. cycle
321  rnd = value & 1 << Base 8 (3 bit) exponent. - 1
322  value >>= Base 8 (3 bit) exponent.
323  exp++
329  If rnd && ++value > Maximum fractional value. Then
330  value >>= Base 8 (3 bit) exponent.
331  exp++
337  exp <<= 13 bit mantissa.
338  exp += value
339  Return exp
Caller
NameDescribe
fill_acWrite 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