函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\buffer_head.h Create Date:2022-07-27 13:23:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static inline __attribute__((__always_inline__)) int buffer_uptodate(const struct buffer_head *bh)

返回类型:int

参数:

类型参数名称
const struct buffer_head *bh
120  返回:如果__builtin_constant_p( Contains valid data )则constant_test_bit(( Contains valid data ), ( & buffer state bitmap (see above) ))否则variable_test_bit(( Contains valid data ), ( & buffer state bitmap (see above) ))
调用者
名称描述
end_buffer_async_read
osync_buffers_listsync is designed to support O_SYNC io
fsync_buffers_list
mark_buffer_dirtymark_buffer_dirty - mark a buffer_head as needing writeout*@bh: the buffer_head to mark dirty* mark_buffer_dirty() will set the dirty bit against the buffer, then set* its backing page dirty, then tag the page as dirty in the page cache* and then attach
__bread_slow
__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
iomap_to_bh
__block_write_begin_int
__block_commit_write
block_is_partially_uptodatelock_is_partially_uptodate checks whether buffers within a page are* uptodate or not.* Returns true if all buffers which correspond to a file portion* we want to read are uptodate.
block_read_full_pageGeneric "read page" function for block devices that have the normal* get_block functionality
nobh_write_beginOn entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure.
block_truncate_page
ll_rw_blockll_rw_block: low-level access to block devices (DEPRECATED)*@op: whether to %READ or %WRITE*@op_flags: req_flag_bits*@nr: number of &struct buffer_heads in the array*@bhs: array of pointers to &struct buffer_head* ll_rw_block() takes an array of pointers
__sync_dirty_bufferFor a data-integrity writeout, we need to wait upon any in-progress I/O* and then start new I/O and then wait upon it. The caller must have a ref on* the buffer_head.
bh_uptodate_or_lockh_uptodate_or_lock - Test whether the buffer is uptodate*@bh: struct buffer_head* Return true if the buffer is up-to-date and false,* with the buffer locked, if not.
bh_submit_readh_submit_read - Submit a locked buffer for reading*@bh: struct buffer_head* Returns zero on success and -EIO on error.
map_buffer_to_pagesupport function for mpage_readpages
do_mpage_readpageThis is the worker routine which does all the work of mapping the disk* blocks and constructs largest possible bios, submits them for IO if the* blocks are not contiguous on the disk
__mpage_writepage