Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\buffer_head.h Create Date:2022-07-28 12:16:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline __attribute__((__always_inline__)) void set_buffer_uptodate(struct buffer_head *bh)

Type:void

Parameter:

TypeParameterName
struct buffer_head *bh
120  If Not If __builtin_constant_p( Contains valid data ) Then constant_test_bit(( Contains valid data ), ( & buffer state bitmap (see above) )) Else variable_test_bit(( Contains valid data ), ( & buffer state bitmap (see above) )) Then Atomically set a bit in memory
Caller
NameDescribe
__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