Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:unsigned long long memparse(const char *ptr, char **retptr)

Type:unsigned long long

Parameter:

TypeParameterName
const char *ptr
char **retptr
129  ret = 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* This function is obsolete. Please use kstrtoull instead.
132  Case endptr == 'E'
133  Case endptr == 'e'
134  ret <<= 10
136  Case endptr == 'P'
137  Case endptr == 'p'
138  ret <<= 10
140  Case endptr == 'T'
141  Case endptr == 't'
142  ret <<= 10
144  Case endptr == 'G'
145  Case endptr == 'g'
146  ret <<= 10
148  Case endptr == 'M'
149  Case endptr == 'm'
150  ret <<= 10
152  Case endptr == 'K'
153  Case endptr == 'k'
154  ret <<= 10
155  endptr++
156  Default
157  Break
160  If retptr Then retptr = endptr
163  Return ret
Caller
NameDescribe
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