Function report |
Source Code:block\partitions\efi.c |
Create Date:2022-07-28 17:31:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:_partition(struct parsed_partitions *state)*@state: disk parsed partitions* Description: called from check.c, if the disk contains GPT* partitions, sets up partition entries in the kernel.* If the first block on the disk is a legacy MBR,
Proto:int efi_partition(struct parsed_partitions *state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state |
680 | gpt_header * gpt = NULL |
683 | ssz = bdev_logical_block_size(bdev) / 512 |
691 | pr_debug("GUID Partition Table is valid! Yea!\n") |
693 | When i < le32_to_cpu(num_partition_entries) && i < limit - 1 cycle |
695 | label_count = 0 |
697 | start = le64_to_cpu(starting_lba) |
698 | size = le64_to_cpu(ending_lba) - le64_to_cpu(starting_lba) + 1ULL |
701 | If Not s_pte_valid() - tests one PTE for validity*@pte:pte to check*@lastlba: last lba of the disk* Description: returns 1 if valid, 0 on error. Then Continue |
707 | If Not efi_guidcmp(partition_type_guid, PARTITION_LINUX_RAID_GUID) Then flags = ADDPART_FLAG_RAID |
711 | efi_guid_to_str( & unique_partition_guid, uuid) |
717 | When label_count < label_max cycle |
724 | has_info = true |
729 | Return 1 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |