Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_lnx1_partitions

Proto:static int find_lnx1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect, loff_t i_size, dasd_information2_t *info)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
struct hd_geometry *geo
intblocksize
charname
union label_t *label
sector_tlabelsect
loff_ti_size
dasd_information2_t *info
208  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*@
209  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.
210  secperblk = blocksize >> 9
211  If version number, valid for ldl format == 0xf2 Then
212  size = valid when ldl_version >= f2 * secperblk
213  Else
221  geo_size = cylinders * heads * sectors * secperblk
223  size = i_size >> 9
224  If size != geo_size Then
225  If Not info Then
229  If Not strcmp(m discipline.name, 'none' for unknown , "ECKD") Then If geo_size < size Then
231  size = geo_size
236  offset = labelsect + secperblk
237  put_partition(state, 1, offset, size - offset)
238  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.
239  Return 1
Caller
NameDescribe
ibm_partitionThis is the main function, called by check.c