函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:strtoul_lenient - parse an ASCII formatted integer from a buffer and only* fail on overflow*@cp: kernel buffer containing the string to parse*@endp: pointer to store the trailing characters*@base: the base to use*@res: where the parsed integer will be

函数原型:static int strtoul_lenient(const char *cp, char **endp, unsigned int base, unsigned long *res)

返回类型:int

参数:

类型参数名称
const char *cp
char **endp
unsigned intbase
unsigned long *res
2168  cp等于_parse_integer_fixup_radix(cp, & base)
2169  rv等于Convert non-negative integer string representation in explicitly given radix* to an integer.* Return number of characters consumed maybe or-ed with overflow bit.* If overflow occurs, result integer (incorrect) is still returned.
2170  如果rv按位与KSTRTOX_OVERFLOWresult不等于result则返回:负ERANGE
2173  cp加等于rv
2175  如果endpendp等于cp
2178  res等于result
2179  返回:0
调用者
名称描述
proc_get_longproc_get_long - reads an ASCII formatted integer from a user buffer*@buf: a kernel buffer*@size: size of the kernel buffer*@val: this is where the number will be stored*@neg: set to %TRUE if number is negative*@perm_tr: a vector which contains the allowed