函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wait_on_bit_io - wait for a bit to be cleared*@word: the word being waited on, a kernel virtual address*@bit: the bit of the word being waited on*@mode: the task state to sleep in* Use the standard hashed waitqueue table to wait for a bit* to be cleared

函数原型:static inline int wait_on_bit_io(unsigned long *word, int bit, unsigned mode)

返回类型:int

参数:

类型参数名称
unsigned long *word
intbit
unsignedmode
98  might_sleep()
99  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:0
101  返回:out_of_line_wait_on_bit(word, bit, bit_wait_io, mode)
调用者
名称描述
__wait_on_bufferBlock until a buffer comes unlocked. This doesn't stop it* from becoming locked again - you have to lock it yourself* if you want to preserve its state.