函数逻辑报告 |
Source Code:block\partitions\amiga.c |
Create Date:2022-07-27 19:01:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:amiga_partition
函数原型:int amiga_partition(struct parsed_partitions *state)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct parsed_partitions * | state |
35 | res等于0 |
36 | blksize等于1 |
37 | slot等于1 |
40 | 循环 |
41 | 如果blk恒等于RDB_ALLOCATION_LIMIT则转到:rdb_done |
43 | data等于read_part_sector(state, blk, & sect) |
44 | 如果非data则 |
45 | 如果This is ugly: should make genhd removable media aware则打印错误信息("Dev %s: unable to read RDB block %d\n", bdevname(bdev, b), blk) |
48 | res等于负1 |
49 | 转到:rdb_done |
51 | 如果data不等于cpu_to_be32("RDSK" )则继续下一循环 |
55 | 如果checksum_block((__be32 * )data, be32_to_cpu(rdb_SummedLongs) & 0x7F)恒等于0则退出 |
60 | *data加0xdc的和等于0 |
61 | 如果checksum_block((__be32 * )data, be32_to_cpu(rdb_SummedLongs) & 0x7F)恒等于0则 |
73 | blksize等于be32_to_cpu(rdb_BlockBytes)除512 |
80 | 长字符串拼接 |
83 | put_dev_sector(sect) |
86 | data等于read_part_sector(state, blk, & sect) |
87 | 如果非data则 |
88 | 如果This is ugly: should make genhd removable media aware则打印错误信息("Dev %s: unable to read partition block %d\n", bdevname(bdev, b), blk) |
91 | res等于负1 |
92 | 转到:rdb_done |
95 | blk等于be32_to_cpu(pb_Next) |
96 | 如果pb_ID不等于cpu_to_be32("PART" )则继续下一循环 |
98 | 如果checksum_block((__be32 * )pb, be32_to_cpu(pb_SummedLongs) & 0x7F)不等于0则继续下一循环 |
103 | nr_sects等于be32_to_cpu(pb_Environment[10])加1减be32_to_cpu(pb_Environment[9])的差乘be32_to_cpu(pb_Environment[3])乘be32_to_cpu(pb_Environment[5])乘blksize |
108 | 如果非nr_sects则继续下一循环 |
110 | start_sect等于be32_to_cpu(pb_Environment[9])乘be32_to_cpu(pb_Environment[3])乘be32_to_cpu(pb_Environment[5])乘blksize |
114 | put_partition(state, slot++, start_sect, nr_sects) |
121 | dt等于pb_Environment[16] |
130 | 长字符串拼接 |
134 | 长字符串拼接 |
136 | res等于1 |
138 | 长字符串拼接 |
140 | rdb_done : |
141 | 返回:res |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |