Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ultrix_partition

Proto:int ultrix_partition(struct parsed_partitions *state)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
18  struct ultrix_disklabel{s32 pt_magic;s32 pt_valid;struct pt_info{s32 pi_nblocks;unsigned int pi_blkoff;}pt_part[8];} * label
30  data = read_part_sector(state, (16384 - size of label ) / 512, & sect)
31  If Not data Then Return -1
34  label = data + 512 - size of label
36  If pt_magic == Partition magic number && pt_valid == Indicates if struct is valid Then
37  When i < 8 cycle If pi_nblocks Then
39  put_partition(state, i + 1, pi_blkoff, pi_nblocks)
42  put_dev_sector(sect)
43  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
44  Return 1
45  Else
46  put_dev_sector(sect)
47  Return 0