Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static gpt_entry *alloc_read_gpt_entries(struct parsed_partitions *state, gpt_header *gpt)

Type:gpt_entry

Parameter:

TypeParameterName
struct parsed_partitions *state
gpt_header *gpt
279  If Not gpt Then Return NULL
282  count = le32_to_cpu(num_partition_entries) * le32_to_cpu(sizeof_partition_entry)
284  If Not count Then Return NULL
286  pte = Allocation memory
287  If Not pte Then Return NULL
290  If 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 Then
292  kfree(pte)
293  pte = NULL
294  Return NULL
296  Return pte
Caller
NameDescribe
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.