Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_pvd(): reads physical volume descriptor*@state*@lba* Description: Returns pvd on success, NULL on error.* Allocates space for pvd and fill it with disk blocks at @lba* Notes: remember to free pvd when you're done!

Proto:static struct pvd *alloc_pvd(struct parsed_partitions *state, unsigned int lba)

Type:struct pvd

Parameter:

TypeParameterName
struct parsed_partitions *state
unsigned intlba
132  count = sizeof(structpvd)
135  p = Allocation memory
136  If Not p Then Return NULL
139  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
140  kfree(p)
141  Return NULL
143  Return p
Caller
NameDescribe
aix_partition