函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cmdline_parts_verifier

函数原型:static void cmdline_parts_verifier(int slot, struct parsed_partitions *state)

返回类型:void

参数:

类型参数名称
intslot
struct parsed_partitions *state
91  bool header = true
93 slot小于limithas_info循环
94 i小于limithas_info循环
96  如果has_overlaps(from, size, from, size)则
100  如果header
101  header = false
104  打印警告信息("%s[%llu,%llu] overlaps with %s[%llu,%llu].", volname, (u64)from << 9, (u64)size << 9, volname, (u64)from << 9, (u64)size << 9)
调用者
名称描述
cmdline_partitionPurpose: allocate cmdline partitions.* Returns:* -1 if unable to read the partition table* 0 if this isn't our partition table* 1 if successful