Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cmdline_parts_verifier

Proto:static void cmdline_parts_verifier(int slot, struct parsed_partitions *state)

Type:void

Parameter:

TypeParameterName
intslot
struct parsed_partitions *state
91  bool header = true
93  When slot < limit && has_info cycle
94  When i < limit && has_info cycle
96  If has_overlaps(from, size, from, size) Then
100  If header Then
101  header = false
104  pr_warn("%s[%llu,%llu] overlaps with %s[%llu,%llu].", volname, (u64)from << 9, (u64)size << 9, volname, (u64)from << 9, (u64)size << 9)
Caller
NameDescribe
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