Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-28 20:07:01
Last Modify:2020-03-18 10:25:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:poll_schedule_timeout

Proto:static int poll_schedule_timeout(struct poll_wqueues *pwq, int state, ktime_t *expires, unsigned long slack)

Type:int

Parameter:

TypeParameterName
struct poll_wqueues *pwq
intstate
ktime_t *expires
unsigned longslack
239  rc = -EINTR
241  set_current_state(state)
242  If Not triggered Then rc = schedule_hrtimeout_range - sleep until timeout*@expires: timeout value (ktime_t)*@delta: slack in expires timeout (ktime_t)*@mode: timer mode* Make the current task sleep until the given expiry time has* elapsed. The routine will return immediately unless
244  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (Used in tsk->state: )
257  smp_store_mb(triggered, 0)
259  Return rc
Caller
NameDescribe
do_select
do_poll