函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partitions\ibm.c Create Date:2022-07-27 19:06:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:find_lnx1_partitions

函数原型: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)

返回类型:int

参数:

类型参数名称
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  长字符串拼接
210  secperblk等于blocksize右移9位
211  如果 version number, valid for ldl format 恒等于0xf2则
212  size等于 valid when ldl_version >= f2 secperblk
213  否则
221  geo_size等于cylindersheadssectorssecperblk
223  size等于i_size右移9位
224  如果size不等于geo_size
225  如果非info
227  返回:1
229  如果非字符串比较则如果geo_size小于size
231  size等于geo_size
236  offset等于labelsectsecperblk
237  put_partition(state, 1, offset, size - offset)
238  长字符串拼接
239  返回:1
调用者
名称描述
ibm_partitionThis is the main function, called by check.c