函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-27 12:13:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:group_parse_float - parse a floating number*@input: input string*@dec_shift: number of decimal digits to shift*@v: output* Parse a decimal floating point number in @input and store the result in*@v with decimal point right shifted @dec_shift times

函数原型:int cgroup_parse_float(const char *input, unsigned dec_shift, s64 *v)

返回类型:int

参数:

类型参数名称
const char *input
unsigneddec_shift
s64 *v
6206  frac等于0
6207  fstart等于0, fend等于0
6209  如果非sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments则返回:负EINVAL
6211  如果frac小于0则返回:负EINVAL
6214  flen等于如果fend大于fstartfendfstart否则0
6215  如果flen小于dec_shiftfrac乘等于power_of_ten(dec_shift - flen)
6217  否则frac等于Same as above but for u64 dividends. divisor must be a 32-bit* number.(frac, power_of_ten(flen - dec_shift))
6220  v等于wholepower_of_ten(dec_shift)加frac
6221  返回:0
调用者
名称描述
ioc_qos_write