函数逻辑报告

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__)) void set_buffer_uptodate(struct buffer_head *bh)

返回类型:void

参数:

类型参数名称
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_read_notouchEnd-of-IO handler helper function which does not touch the bh after* unlocking it
end_buffer_write_sync
end_buffer_async_read
end_buffer_async_writeCompletion handler for block_write_full_page() - pages which are unlocked* during I/O, and which have PageWriteback cleared upon I/O completion.
init_page_buffersInitialise the state of a blockdev page's buffers.
create_empty_buffersWe attach and possibly dirty the buffers atomically wrt* __set_page_dirty_buffers() via private_lock. try_to_free_buffers* is already excluded via the page lock.
__block_write_full_pageWhile 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
page_zero_new_buffersIf a page has any new buffers, zero them out here, and mark them uptodate* and dirty so they'll be written out (in order to prevent uninitialised* block data from leaking). And clear the new bit.
iomap_to_bh
__block_write_begin_int
__block_commit_write
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