函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:25 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:submit_bh_wbc
函数原型:static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, enum rw_hint write_hint, struct writeback_control *wbc)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | op | |
int | op_flags | |
struct buffer_head * | bh | |
enum rw_hint | write_hint | |
struct writeback_control * | wbc |
3070 | BUG_ON(!buffer_locked(bh)) |
3071 | BUG_ON(!buffer_mapped(bh)) |
3072 | BUG_ON(! I/O completion ) |
3073 | BUG_ON(buffer_delay(bh)) |
3074 | BUG_ON(buffer_unwritten(bh)) |
3079 | 如果test_set_buffer_req(bh)且op恒等于REQ_OP_WRITE则clear_buffer_write_io_error(bh) |
3088 | device address in 512 byte sectors 等于 start block number 乘 size of mapping 右移9位的值 |
3089 | bio_set_dev(bio, b_bdev) |
3090 | bi_write_hint等于write_hint |
3093 | BUG_ON( residual I/O count != size of mapping ) |
3095 | bi_end_io等于end_bio_bh_io_sync |
3096 | bi_private等于bh |
3098 | 如果buffer_meta(bh)则op_flags或等于REQ_META |
3100 | 如果buffer_prio(bh)则op_flags或等于REQ_PRIO |
3107 | 如果wbc则 |
3108 | wbc_init_bio(wbc, bio) |
3112 | submit_bio(bio) |
3113 | 返回:0 |
名称 | 描述 |
---|---|
__block_write_full_page | While block_write_full_page is writing back the dirty buffers under* the page lock, whoever dirtied the buffers may decide to clean them* again at any time |
submit_bh |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |