函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:encode_comp_t

函数原型:static comp_t encode_comp_t(unsigned long value)

返回类型:comp_t

参数:

类型参数名称
unsigned longvalue
319  exp等于rnd等于0
320 value大于Maximum fractional value. 循环
321  rnd等于value按位与1左移Base 8 (3 bit) exponent. 减1位
322  value右移等于Base 8 (3 bit) exponent.
323  exp自加
329  如果rndvalue先自加大于Maximum fractional value.
330  value右移等于Base 8 (3 bit) exponent.
331  exp自加
337  exp左移等于13 bit mantissa.
338  exp加等于value
339  返回:exp
调用者
名称描述
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