函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sleep_range - Sleep for an approximate time*@min: Minimum time in usecs to sleep*@max: Maximum time in usecs to sleep* In non-atomic context where the exact wakeup time is flexible, use* usleep_range() instead of udelay()

函数原型:void __sched usleep_range(unsigned long min, unsigned long max)

返回类型:void

参数:

类型参数名称
unsigned longmin
unsigned longmax
2081  exp等于ktime_add_us(ktime_get(), min)
2082  delta等于maxmin的差乘NSEC_PER_USEC
2084  循环
2085  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;* (深度睡眠态)
2087  如果非schedule_hrtimeout_range( & exp, delta, Time value is absolute)则退出
调用者
名称描述
try_to_freeze_tasks
dummy_load