Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sysv68_partition

Proto:int sysv68_partition(struct parsed_partitions *state)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
53  slot = 1
60  data = read_part_sector(state, 0, & sect)
61  If Not data Then Return -1
64  b = data
65  If memcmp(ASCII string "MOTOROLA" , "MOTOROLA", size of ASCII string "MOTOROLA" ) Then
66  put_dev_sector(sect)
67  Return 0
69  slices = be16_to_cpu(Number of entries in slice table )
70  i = be32_to_cpu(Slice table block number )
71  put_dev_sector(sect)
73  data = read_part_sector(state, i, & sect)
74  If Not data Then Return -1
77  slices -= 1
78  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
79  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.
80  slice = data
81  When i < slices cycle
82  If slot == limit Then Break
91  slot++
93  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.
94  put_dev_sector(sect)
95  Return 1