Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:encode_comp2_t

Proto:static comp2_t encode_comp2_t(u64 value)

Type:comp2_t

Parameter:

TypeParameterName
u64value
361  exp = value > Maximum fractional value. >> 1
362  rnd = 0
363  When value > Maximum fractional value. cycle
364  rnd = value & 1
365  value >>= 1
366  exp++
372  If rnd && ++value > Maximum fractional value. Then
373  value >>= 1
374  exp++
377  If exp > Maximum exponent. Then
379  Return (1ul << 20 bit mantissa. + 5 bit base 2 exponent. - 1 ) - 1
380  Else
381  Return value & Maximum fractional value. >> 1 | exp << 20 bit mantissa. - 1
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