函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:十六进制串转换为长整数

函数原型:unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)

返回类型:unsigned long long

参数:

类型参数名称
const char *cp
char **endp
unsigned intbase
123  result等于0
125  如果非basebase等于simple_guess_base(cp)
128  如果base恒等于16且cp[0]恒等于'0'且Works only for digits and letters, but small and fast (cp[1])恒等于'x'则cp加等于2
131 isxdigit( * cp)循环
134  value等于如果是数字cp减'0'否则Works only for digits and letters, but small and fast ( * cp)减'a'加10
135  如果value大于等于base退出
137  result等于resultbasevalue
138  cp自加
140  如果endpendp等于cp
143  返回:result
调用者
名称描述
parse_earlyprintk解析命令行参数"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