函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\string.c Create Date:2022-07-27 08:26:19
Last Modify:2022-05-21 21:56:45 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_kstrtoull

函数原型:static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res)

返回类型:int

参数:

类型参数名称
const char *s
unsigned intbase
unsigned long long *res
301  s等于_parse_integer_fixup_radix(s, & base)
302  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.
303  如果rv按位与KSTRTOX_OVERFLOW则返回:负ERANGE
305  如果rv恒等于0则返回:负EINVAL
307  s加等于rv
308  如果s恒等于'\n'则s自加
310  如果s则返回:负EINVAL
312  res等于_res
313  返回:0
调用者
名称描述
kstrtoullkstrtoull - convert a string to an unsigned long long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
kstrtoullkstrtoull - convert a string to an unsigned long long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
kstrtollkstrtoll - convert a string to a long long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.