Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timer.c Create Date:2022-07-28 10:40:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:msleep_interruptible - sleep waiting for signals*@msecs: Time in milliseconds to sleep for

Proto:unsigned long msleep_interruptible(unsigned int msecs)

Type:unsigned long

Parameter:

TypeParameterName
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  When timeout && Not signal_pending(current process) cycle
2062  timeout = We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
2063  Return Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases:
Caller
NameDescribe
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