函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_cms1_partitions

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

返回类型:int

参数:

类型参数名称
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  如果 Disk offset when reserved不等于0则
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  长字符串拼接
262  offset等于 Disk offset when reservedsecperblk
263  size等于 Disk size in CMS blocks 减1的差乘secperblk
264  否则
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  长字符串拼接
274  如果labelsect恒等于1则offset等于2乘secperblk
276  否则offset等于labelsectsecperblk
278  size等于 Disk size in CMS blocks secperblk
281  put_partition(state, 1, offset, size - offset)
282  长字符串拼接
283  返回:1
调用者
名称描述
ibm_partitionThis is the main function, called by check.c