函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_read_gpt_entries(): reads partition entries from disk*@state: disk parsed partitions*@gpt: GPT header* Description: Returns ptes on success, NULL on error

函数原型:static gpt_entry *alloc_read_gpt_entries(struct parsed_partitions *state, gpt_header *gpt)

返回类型:gpt_entry

参数:

类型参数名称
struct parsed_partitions *state
gpt_header *gpt
279  如果非gpt则返回:NULL
282  count等于le32_to_cpu(num_partition_entries)乘le32_to_cpu(sizeof_partition_entry)
284  如果非count则返回:NULL
286  pte等于开辟内存
287  如果非pte则返回:NULL
290  如果ad_lba(): Read bytes from disk, starting at given LBA*@state: disk parsed partitions*@lba: the Logical Block Address of the partition table*@buffer: destination buffer*@count: bytes to read* Description: Reads @count bytes from @state->bdev into @buffer.小于count
292  释放内存
293  pte = NULL
294  返回:NULL
296  返回:pte
调用者
名称描述
is_gpt_valids_gpt_valid() - tests one GPT header and PTEs for validity*@state: disk parsed partitions*@lba: logical block address of the GPT header to test*@gpt: GPT header ptr, filled on return.*@ptes: PTEs ptr, filled on return.