函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\wait_bit.c Create Date:2022-07-27 10:41:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bit_wait_io_timeout

函数原型:__sched int bit_wait_io_timeout(struct wait_bit_key *word, int mode)

返回类型:int

参数:

类型参数名称
struct wait_bit_key *word
intmode
232  now等于READ_ONCE(jiffies)
234  如果time_after_eq(now, timeout)则返回:负EAGAIN
236  This task is about to go to sleep on IO. Increment rq->nr_iowait so* that process accounting knows that this is a task in IO wait state.
237  如果signal_pending_state(mode, 当前进程)则返回:负EINTR
240  返回:0