Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\string.c Create Date:2022-07-28 07:27:08
Last Modify:2022-05-21 21:56:45 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *p)

Type:unsigned int

Parameter:

TypeParameterName
const char *s
unsigned intbase
unsigned long long *p
264  res = 0
265  rv = 0
266  When 1 cycle
267  c = s
268  lc = c | 0x20
271  If '0' <= c && c <= '9' Then val = c - '0'
273  Else if 'a' <= lc && lc <= 'f' Then val = lc - 'a' + 10
275  Else Break
278  If val >= base Then Break
288  res = res * base + val
289  rv++
290  s++
292  p = res
293  Return rv
Caller
NameDescribe
bitmap_getnum
_kstrtoull
_kstrtoull
__bpf_strtoull