函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *p)

返回类型:unsigned int

参数:

类型参数名称
const char *s
unsigned intbase
unsigned long long *p
53  res等于0
54  rv等于0
55  当1循环
56  c等于s
57  lc等于c按位或0x20
60  如果'0'小于等于cc小于等于'9'则val等于c减'0'
62  否则如果'a'小于等于lclc小于等于'f'则val等于lc减'a'加10
64  否则退出
67  如果val大于等于base退出
73  如果此条件成立可能性小(为编译器优化)(res & (~0ull << 60))则
77  res等于resbaseval
78  rv自加
79  s自加
81  p等于res
82  返回:rv
调用者
名称描述
simple_strtoull转换字符串为无符号长整形
strtoul_lenientstrtoul_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
bitmap_getnum
_kstrtoull