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:04
Last Modify:2022-05-21 21:56:45 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:simple_strtoull - convert a string to an unsigned long long*@cp: The start of the string*@endp: A pointer to the end of the parsed string will be placed here*@base: The number base to use

Proto:unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)

Type:unsigned long long

Parameter:

TypeParameterName
const char *cp
char **endp
unsigned intbase
123  result = 0
125  If Not base Then base = simple_guess_base(cp)
128  If base == 16 && cp[0] == '0' && Works only for digits and letters, but small and fast (cp[1]) == 'x' Then cp += 2
131  When isxdigit( * cp) cycle
134  value = If isdigit( * cp) Then cp - '0' Else Works only for digits and letters, but small and fast ( * cp) - 'a' + 10
135  If value >= base Then Break
137  result = result * base + value
138  cp++
140  If endp Then endp = cp
143  Return result
Caller
NameDescribe
parse_earlyprintk
parse_console_uart8250
simple_strtol
parse_memmap_one
mtrr_writeseq_file can seek but we ignore it.* Format of control line:* "base=%Lx size=%Lx type=%s" or "disable=%d"
early_serial_init
kdbgetu64arg