函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trylock_buffer

函数原型:static inline int trylock_buffer(struct buffer_head *bh)

返回类型:int

参数:

类型参数名称
struct buffer_head *bh
359  返回:此条件成立可能性大(为编译器优化)(!st_and_set_bit_lock - Set a bit and return its old value, for lock*@nr: Bit to set*@addr: Address to count from* This operation is atomic and provides acquire barrier semantics if* the returned value is 0.* It can be used to implement bit locks.)
调用者
名称描述
buffer_migrate_lock_buffersReturns true if all buffers are successfully locked
__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
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
lock_buffer