函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:27
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:h_submit_read - Submit a locked buffer for reading*@bh: struct buffer_head* Returns zero on success and -EIO on error.

函数原型:int bh_submit_read(struct buffer_head *bh)

返回类型:int

参数:

类型参数名称
struct buffer_head *bh
3449  BUG_ON(!buffer_locked(bh))
3451  如果Emit the buffer bitops functions. Note that there are also functions* of the form "mark_buffer_foo()". These are higher-level functions which* do something in addition to setting a b_state bit.
3452  unlock_buffer(bh)
3453  返回:0
3456  get_bh(bh)
3457  I/O completion 等于Default synchronous end-of-IO handler.. Just mark it up-to-date and* unlock the buffer. This is what ll_rw_block uses too.
3458  submit_bh(REQ_OP_READ, 0, bh)
3459  wait_on_buffer(bh)
3460  如果Emit the buffer bitops functions. Note that there are also functions* of the form "mark_buffer_foo()". These are higher-level functions which* do something in addition to setting a b_state bit.则返回:0
3462  返回:负EIO