函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_label

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

返回类型:int

参数:

类型参数名称
struct parsed_partitions *state
dasd_information2_t *info
struct hd_geometry *geo
intblocksize
sector_t *labelsect
charname
chartype
union label_t *label
77  found等于0
88  如果info
89  如果m SenseID 恒等于0x6310且m SenseID 恒等于0x9336或m SenseID 恒等于0x3880且m SenseID 恒等于0x3370则testsect[0]等于where to find the VOLSER
92  否则testsect[0]等于where to find the VOLSER blocksize右移9位的值
94  testcount等于1
95  否则
96  testsect[0]等于1
97  testsect[1]等于blocksize右移9位
98  testsect[2]等于2乘blocksize右移9位的值
99  testcount等于3
101 i小于testcount循环
102  data等于read_part_sector(state, testsect[i], & sect)
103  如果(data == NULL)则继续下一循环
105  memcpy(label, data, label的长度)
106  memcpy(temp, data, 4)
107  temp[4]等于0
108  EBCASC(temp, 4)
109  put_dev_sector(sect)
110  如果非字符串比较或非字符串比较或非字符串比较
113  如果非字符串比较
116  否则
120  EBCASC(type, 4)
121  EBCASC(name, 6)
122  labelsect等于testsect[i]
123  found等于1
124  退出
127  如果非foundmemset(label, 0, label的长度)
130  返回:found
调用者
名称描述
ibm_partitionThis is the main function, called by check.c