Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\wait_bit.c Create Date:2022-07-28 09:41:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bit_wait_io_timeout

Proto:__sched int bit_wait_io_timeout(struct wait_bit_key *word, int mode)

Type:int

Parameter:

TypeParameterName
struct wait_bit_key *word
intmode
232  now = READ_ONCE(jiffies)
234  If time_after_eq(now, timeout) Then Return -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  If signal_pending_state(mode, current process) Then Return -EINTR
240  Return 0