Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_cms1_partitions

Proto:static int find_cms1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
struct hd_geometry *geo
intblocksize
charname
union label_t *label
sector_tlabelsect
256  blocksize = Disk block size
257  secperblk = blocksize >> 9
258  If Disk offset when reserved != 0 Then
259  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*@
260  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.
262  offset = Disk offset when reserved * secperblk
263  size = ( Disk size in CMS blocks - 1) * secperblk
264  Else
265  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*@
266  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.
274  If labelsect == 1 Then offset = 2 * secperblk
276  Else offset = labelsect + secperblk
278  size = Disk size in CMS blocks * secperblk
281  put_partition(state, 1, offset, size - offset)
282  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.
283  Return 1
Caller
NameDescribe
ibm_partitionThis is the main function, called by check.c