函数逻辑报告 |
Source Code:block\blk-zoned.c |
Create Date:2022-07-27 19:41:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lk_revalidate_disk_zones - (re)allocate and initialize zone bitmaps*@disk: Target disk* Helper function for low-level device drivers to (re) allocate and initialize* a disk request queue zone bitmaps. This functions should normally be called
函数原型:int blk_revalidate_disk_zones(struct gendisk *disk)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct gendisk * | disk |
438 | struct blk_revalidate_zone_args args = {disk = disk, } |
444 | 如果WARN_ON_ONCE(!blk_queue_is_zoned(q))则返回:负EIO |
446 | 如果WARN_ON_ONCE(!queue_is_mq(q))则返回:负EIO |
454 | ret等于report_zones(disk, 0, UINT_MAX, Helper function to check the validity of zones of a zoned block device., & args) |
463 | blk_mq_freeze_queue(q) |
464 | 如果ret大于等于0则 |
467 | swap - swap values of @a and @b*@a: first value*@b: second value(seq_zones_wlock, seq_zones_wlock) |
468 | swap - swap values of @a and @b*@a: first value*@b: second value(conv_zones_bitmap, conv_zones_bitmap) |
469 | ret等于0 |
470 | 否则 |
471 | 打印警告信息("%s: failed to revalidate zones\n", name of major driver ) |
474 | blk_mq_unfreeze_queue(q) |
476 | 释放内存 |
477 | 释放内存 |
478 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |