函数逻辑报告 |
Source Code:block\blk-flush.c |
Create Date:2022-07-27 18:37:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:blk_flush_policy
函数原型:static unsigned int blk_flush_policy(unsigned long fflags, struct request *rq)
返回类型:unsigned int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | fflags | |
struct request * | rq |
101 | policy等于0 |
103 | 如果blk_rq_sectors(rq)则policy或等于REQ_FSEQ_DATA |
106 | 如果fflags按位与1UL左移Write back caching 位则 |
107 | 如果 op and common flags 按位与REQ_PREFLUSH则policy或等于REQ_FSEQ_PREFLUSH |
109 | 如果非fflags按位与1UL左移device supports FUA writes 位的值且 op and common flags 按位与REQ_FUA则policy或等于REQ_FSEQ_POSTFLUSH |
113 | 返回:policy |
名称 | 描述 |
---|---|
blk_insert_flush | lk_insert_flush - insert a new PREFLUSH/FUA request*@rq: request to insert* To be called from __elv_add_request() for %ELEVATOR_INSERT_FLUSH insertions.* or __blk_mq_run_hw_queue() to dispatch request.*@rq is being submitted |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |