函数逻辑报告 |
Source Code:block\blk-core.c |
Create Date:2022-07-27 18:35:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lk_update_request - Special helper function for request stacking drivers*@req: the request being processed*@error: block status code*@nr_bytes: number of bytes to complete @req* Description:* Ends I/O on a number of bytes attached to @req, but doesn't
函数原型:bool blk_update_request(struct request *req, blk_status_t error, unsigned int nr_bytes)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request * | req | |
blk_status_t | error | |
unsigned int | nr_bytes |
1443 | 如果非bio则返回:false |
1447 | 如果blk_integrity_rq(req)且req_op(req)恒等于REQ_OP_READ且error恒等于BLK_STS_OK则complete_fn(req, nr_bytes) |
1452 | 如果此条件成立可能性小(为编译器优化)(error && !blk_rq_is_passthrough(req) && !(rq_flags & don't warn about errors ))则print_req_error(req, error, __func__) |
1456 | blk_account_io_completion(req, nr_bytes) |
1458 | total_bytes等于0 |
1461 | bio_bytes等于两数取小( residual I/O count , nr_bytes) |
1463 | 如果bio_bytes恒等于 residual I/O count 则bio等于 request queue link |
1468 | req_bio_endio(req, bio, bio_bytes, error) |
1470 | total_bytes加等于bio_bytes |
1480 | 如果非bio则 |
1486 | total data len 等于0 |
1487 | 返回:false |
1490 | total data len 减等于total_bytes |
1493 | 如果非blk_rq_is_passthrough(req)则 sector cursor 加等于total_bytes右移9位 |
1498 | op and common flags 与等于REQ_FAILFAST_MASK的反 |
1507 | 如果blk_rq_bytes(req)小于blk_rq_cur_bytes(req)则 |
1508 | blk_dump_rq_flags(req, "request botched") |
1509 | total data len 等于blk_rq_cur_bytes(req) |
1516 | 返回:true |
名称 | 描述 |
---|---|
blk_mq_end_request |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |