Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kstrtox.c Create Date:2022-07-28 06:26:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_kstrtoull

Proto:static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res)

Type:int

Parameter:

TypeParameterName
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  If rv & KSTRTOX_OVERFLOW Then Return -ERANGE
94  If rv == 0 Then Return -EINVAL
96  s += rv
97  If s == '\n' Then s++
99  If s Then Return -EINVAL
101  res = _res
102  Return 0
Caller
NameDescribe
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.