函数逻辑报告 |
Source Code:block\blk-zoned.c |
Create Date:2022-07-27 19:41:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Helper function to check the validity of zones of a zoned block device.
函数原型:static int blk_revalidate_zone_cb(struct blk_zone *zone, unsigned int idx, void *data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct blk_zone * | zone | |
unsigned int | idx | |
void * | data |
359 | capacity等于get_capacity(disk) |
365 | 如果Zone start sector 恒等于0则 |
367 | 打印警告信息("%s: Invalid zoned device with non power of two zone size (%llu)\n", name of major driver , Zone length in number of sectors ) |
369 | 返回:负ENODEV |
374 | 否则如果Zone start sector 加zone_sectors小于capacity则 |
375 | 如果Zone length in number of sectors 不等于zone_sectors则 |
376 | 打印警告信息("%s: Invalid zoned device with non constant zone size\n", name of major driver ) |
378 | 返回:负ENODEV |
380 | 否则 |
382 | 打印警告信息("%s: Invalid zoned device with larger last zone size\n", name of major driver ) |
384 | 返回:负ENODEV |
389 | 如果Zone start sector 不等于sector则 |
390 | 打印警告信息("%s: Zone gap at sectors %llu..%llu\n", name of major driver , sector, Zone start sector ) |
392 | 返回:负ENODEV |
397 | 当:Zone type 恒等于BLK_ZONE_TYPE_CONVENTIONAL |
406 | 当:Zone type 恒等于BLK_ZONE_TYPE_SEQWRITE_REQ |
415 | 默认 |
416 | 打印警告信息("%s: Invalid zone type 0x%x at sectors %llu\n", name of major driver , (int)Zone type , Zone start sector ) |
418 | 返回:负ENODEV |
422 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |