Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:14
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:int bh_submit_read(struct buffer_head *bh)

Type:int

Parameter:

TypeParameterName
struct buffer_head *bh
3449  BUG_ON(!buffer_locked(bh))
3451  If 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. Then
3452  unlock_buffer(bh)
3453  Return 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  If 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. Then Return 0
3462  Return -EIO