Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_read_gpt_header(): Allocates GPT header, reads into it from disk*@state: disk parsed partitions*@lba: the Logical Block Address of the partition table* Description: returns GPT header on success, NULL on error. Allocates

Proto:static gpt_header *alloc_read_gpt_header(struct parsed_partitions *state, u64 lba)

Type:gpt_header

Parameter:

TypeParameterName
struct parsed_partitions *state
u64lba
312  ssz = bdev_logical_block_size(bdev)
314  gpt = Allocation memory
315  If Not gpt Then Return NULL
318  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. < ssz Then
319  kfree(gpt)
320  gpt = NULL
321  Return NULL
324  Return gpt
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.