Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static inline int is_pte_valid(const gpt_entry *pte, const u64 lastlba)

Type:int

Parameter:

TypeParameterName
const gpt_entry *pte
const u64lastlba
465  If Not efi_guidcmp(partition_type_guid, EFI Configuration Table and GUID definitions* These are all defined in a single line to make them easier to* grep for and to see them at a glance - while still having a* similar structure to the definitions in the spec) || le64_to_cpu(starting_lba) > lastlba || le64_to_cpu(ending_lba) > lastlba Then Return 0
469  Return 1
Caller
NameDescribe
efi_partition_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,