Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__bread_slow

Proto:static struct buffer_head *__bread_slow(struct buffer_head *bh)

Type:struct buffer_head

Parameter:

TypeParameterName
struct buffer_head *bh
1210  lock_buffer(bh)
1211  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
1212  unlock_buffer(bh)
1213  Return bh
1214  Else
1215  get_bh(bh)
1216  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.
1217  submit_bh(REQ_OP_READ, 0, bh)
1218  wait_on_buffer(bh)
1219  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 bh
1222  brelse(bh)
1223  Return NULL
Caller
NameDescribe
__bread_gfp__bread_gfp() - reads a specified block and returns the bh*@bdev: the block_device to read from*@block: number of block*@size: size (in bytes) to read*@gfp: page allocation flag* Reads a specified block, and returns buffer head that contains it