函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kstrtox.c Create Date:2022-07-27 07:23:34
Last Modify:2020-03-12 14:18:49 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
90  s等于_parse_integer_fixup_radix(s, & base)
91  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.
92  如果rv按位与KSTRTOX_OVERFLOW则返回:负ERANGE
94  如果rv恒等于0则返回:负EINVAL
96  s加等于rv
97  如果s恒等于'\n'则s自加
99  如果s则返回:负EINVAL
101  res等于_res
102  返回: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.
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.
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.