函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parse_memmap_one

函数原型:static int __init parse_memmap_one(char *p)

返回类型:int

参数:

类型参数名称
char *p
909  如果非p则返回:负EINVAL
912  如果非字符串指定长度比较
921  nr_entries等于0
922  userdef等于1
923  返回:0
926  oldp等于p
927  mem_size等于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
928  如果p恒等于oldp则返回:负EINVAL
931  userdef等于1
932  如果p恒等于'@'则
933  start_at等于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
934  e820__range_add(start_at, mem_size, E820_TYPE_RAM)
935  否则如果p恒等于'#'则
936  start_at等于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
937  e820__range_add(start_at, mem_size, E820_TYPE_ACPI)
938  否则如果p恒等于'$'则
939  start_at等于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
940  e820__range_add(start_at, mem_size, E820_TYPE_RESERVED)
941  否则如果p恒等于'!'则
942  start_at等于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
943  e820__range_add(start_at, mem_size, E820_TYPE_PRAM)
944  否则如果p恒等于'%'则
945  from等于0, to等于0
947  start_at等于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
948  如果p恒等于'-'则from等于转换字符串为无符号长整形
950  如果p恒等于'+'则to等于十六进制串转换为长整数
952  如果p不等于'\0'则返回:负EINVAL
954  如果fromtoe820__range_update(start_at, mem_size, from, to)
956  否则如果toe820__range_add(start_at, mem_size, to)
958  否则如果fromRemove a range of memory from the E820 table:
960  否则Remove a range of memory from the E820 table:
962  否则
963  Remove a range of memory from the E820 table:
966  返回:如果p恒等于'\0'则0否则负EINVAL
调用者
名称描述
parse_memmap_opt