函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:msleep_interruptible - sleep waiting for signals*@msecs: Time in milliseconds to sleep for

函数原型:unsigned long msleep_interruptible(unsigned int msecs)

返回类型:unsigned long

参数:

类型参数名称
unsigned intmsecs
2059  timeout等于msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than加1
2061 timeout且非signal_pending(当前进程)循环
2062  timeout等于We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
2063  返回:Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases:
调用者
名称描述
kthread_fnkthread_fn - The CPU time sampling/hardware latency detection kernel thread* Used to periodically sample the CPU TSC via a call to get_sample. We* disable interrupts, which does (intentionally) introduce latency since we