Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:atari_partition

Proto:int atari_partition(struct parsed_partitions *state)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
43  part_fmt = 0
50  If bdev_logical_block_size(bdev) != 512 Then Return 0
53  rs = read_part_sector(state, 0, & sect)
54  If Not rs Then Return -1
58  hd_size = i_size >> 9
59  If Not check if a partition entry looks valid -- Atari format is assumed if atleast one of the primary entries is ok this way ( & part[0], hd_size) && Not check if a partition entry looks valid -- Atari format is assumed if atleast one of the primary entries is ok this way ( & part[1], hd_size) && Not check if a partition entry looks valid -- Atari format is assumed if atleast one of the primary entries is ok this way ( & part[2], hd_size) && Not check if a partition entry looks valid -- Atari format is assumed if atleast one of the primary entries is ok this way ( & part[3], hd_size) Then
68  put_dev_sector(sect)
69  Return 0
72  pi = part[0]
73  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.
74  When pi < part[4] && slot < limit cycle
79  If Not ( 0: active; bit 7: bootable & 1) Then Continue
82  If memcmp("GEM", "BGM", "XGM", or other , "XGM", 3) != 0 Then
86  Continue
90  part_fmt = 1
92  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.
93  partsect = extensect = be32_to_cpu(start of partition )
94  When 1 cycle
96  If Not xrs Then
103  If Not ( 0: active; bit 7: bootable & 1) Then
113  If Not ( 0: active; bit 7: bootable & 1) Then
116  Break
118  If memcmp("GEM", "BGM", "XGM", or other , "XGM", 3) != 0 Then
126  If ++slot == limit Then
131  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.
134  If part_fmt != 1 Then
135  pi = info for ICD-partitions 5..12 [0]
152  put_dev_sector(sect)
154  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.
156  Return 1