函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cmdline.c Create Date:2022-07-27 07:09:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:memparse - parse a string with mem suffixes into a number*@ptr: Where parse begins*@retptr: (output) Optional pointer to next char after parse completes* Parses a string into a number. The number stored at @ptr is

函数原型:unsigned long long memparse(const char *ptr, char **retptr)

返回类型:unsigned long long

参数:

类型参数名称
const char *ptr
char **retptr
129  ret等于转换字符串为无符号长整形
132  :endptr恒等于'E'
133  :endptr恒等于'e'
134  ret左移等于10位
136  :endptr恒等于'P'
137  :endptr恒等于'p'
138  ret左移等于10位
140  :endptr恒等于'T'
141  :endptr恒等于't'
142  ret左移等于10位
144  :endptr恒等于'G'
145  :endptr恒等于'g'
146  ret左移等于10位
148  :endptr恒等于'M'
149  :endptr恒等于'm'
150  ret左移等于10位
152  :endptr恒等于'K'
153  :endptr恒等于'k'
154  ret左移等于10位
155  endptr自加
156  默认
157  退出
160  如果retptrretptr等于endptr
163  返回:ret
调用者
名称描述
parse_memoptThe "mem=nopentium" boot option disables 4MB page tables on 32-bit kernels:
parse_memmap_one
parse_alloc_mptable_opt
parse_mem_block_sizeKernel parameter to specify UV mem block size
set_corruption_check_size
early_cma
parse_crashkernel_memThis function parses command lines in the format* crashkernel=ramsize-range:size[,...][@offset]* The function returns 0 on success and -EINVAL on failure.
parse_crashkernel_simpleThat function parses "simple" (old) crashkernel command lines like* crashkernel=size[@offset]* It returns 0 on success and -EINVAL on failure.
parse_crashkernel_suffixThat function parses "suffix" crashkernel command lines like* crashkernel=size,[high|low]* It returns 0 on success and -EINVAL on failure.
set_buf_size
setup_elfcorehdrlfcorehdr= specifies the location of elf core header stored by the crashed* kernel. This option will be passed by kexec loader to the capture kernel.* Syntax: elfcorehdr=[size[KMG]@]offset[KMG]
early_initrd
page_counter_memparsepage_counter_memparse - memparse() for page counter limits*@buf: string to parse*@max: string meaning maximum possible value*@nr_pages: returns the result in number of pages* Returns -EINVAL, or 0 and @nr_pages on success. @nr_pages will be
parse_subpart
parse_reservelow
log_buf_len_setupsave requested log_buf_len since it's too early to process it
hugetlb_default_setup
param_set_bufsize