函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline int is_pte_valid(const gpt_entry *pte, const u64 lastlba)

返回类型:int

参数:

类型参数名称
const gpt_entry *pte
const u64lastlba
465  如果非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)大于lastlbale64_to_cpu(ending_lba)大于lastlba则返回:0
469  返回:1
调用者
名称描述
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,