函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\string.c Create Date:2022-07-27 08:26:18
Last Modify:2022-05-21 21:56:45 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.

函数原型:static 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
264  res等于0
265  rv等于0
266  当1循环
267  c等于s
268  lc等于c按位或0x20
271  如果'0'小于等于cc小于等于'9'则val等于c减'0'
273  否则如果'a'小于等于lclc小于等于'f'则val等于lc减'a'加10
275  否则退出
278  如果val大于等于base退出
284  如果此条件成立可能性小(为编译器优化)(res & (~0ull << 60))则
285  如果res大于__div_u64(ULLONG_MAX - val, base)则rv或等于KSTRTOX_OVERFLOW
288  res等于resbaseval
289  rv自加
290  s自加
292  p等于res
293  返回:rv
调用者
名称描述
bitmap_getnum
_kstrtoull
_kstrtoull
__bpf_strtoull