函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-29 10:36:59
Last Modify:2020-03-18 10:25:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:poll_schedule_timeout

函数原型:static int poll_schedule_timeout(struct poll_wqueues *pwq, int state, ktime_t *expires, unsigned long slack)

返回类型:int

参数:

类型参数名称
struct poll_wqueues *pwq
intstate
ktime_t *expires
unsigned longslack
239  rc等于负EINTR
241  set_current_state(state)
242  如果非triggeredrc等于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;* (就绪态)
257  smp_store_mb(triggered, 0)
259  返回:rc
调用者
名称描述
do_select
do_poll