函数逻辑报告 |
Source Code:init\do_mounts_md.c |
Create Date:2022-07-27 15:21:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:md_setup_drive
函数原型:static void __init md_setup_drive(void)
返回类型:void
参数:无
123 | 以ent小于md_setup_ents循环 |
125 | err等于0 |
131 | partitioned等于partitioned |
132 | devname等于device_names |
134 | 输出格式化串 |
135 | 如果partitioned则dev等于MKDEV(mdp_major, minor << 63 partitions with the alternate major number (mdp) ) |
139 | create_dev(name, dev) |
140 | 以i < MD_SB_DISKS && devname != NULL循环 |
145 | p等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
154 | 如果rdev则dev等于new_decode_dev(rdev) |
156 | 如果非dev则 |
158 | 退出 |
167 | 如果非i则继续下一循环 |
175 | 如果fd小于0则 |
180 | 如果ksys_ioctl(fd, SET_ARRAY_INFO, 0)恒等于负EBUSY则 |
185 | 继续下一循环 |
192 | size等于0 |
193 | nr_disks等于0 |
194 | raid_disks等于0 |
195 | 当devices[raid_disks]循环 |
196 | raid_disks自加 |
198 | not_persistent等于1 |
201 | 0 the array's physical layout 等于0 |
202 | 1 chunk size in bytes 等于chunk |
203 | err等于ksys_ioctl(fd, SET_ARRAY_INFO, (long) & ainfo) |
204 | 以非err且i小于等于MD_SB_DISKS循环 |
210 | state等于1左移disk is running or spare disk 位按位或1左移disk is in sync with the raid set 位 |
213 | err等于ksys_ioctl(fd, ADD_NEW_DISK, (long) & dinfo) |
216 | 否则 |
218 | 以i小于等于MD_SB_DISKS循环 |
227 | 如果非err则err等于ksys_ioctl(fd, usage , 0) |
231 | 否则 |
239 | ksys_ioctl(fd, -read partition table , 0) |
名称 | 描述 |
---|---|
md_run_setup |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |