Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hrtimer_nanosleep

Proto:long hrtimer_nanosleep(const struct timespec64 *rqtp, const enum hrtimer_mode mode, const clockid_t clockid)

Type:long

Parameter:

TypeParameterName
const struct timespec64 *rqtp
const enum hrtimer_modemode
const clockid_tclockid
1918  ret = 0
1921  slack = timer_slack_ns
1922  If dl_task(current process) || rt_task(current process) Then slack = 0
1925  hrtimer_init_sleeper_on_stack( & t, clockid, mode)
1926  hrtimer_set_expires_range_ns( & timer, vert a timespec64 to ktime_t format: , slack)
1927  ret = do_nanosleep( & t, mode)
1928  If ret != -start by calling sys_restart_syscall Then Go to out
1932  If mode == Time value is absolute Then
1933  ret = -start if no handler..
1934  Go to out
1937  restart = restart_block
1938  fn = hrtimer_nanosleep_restart
1939  clockid = clockid
1940  expires = hrtimer_get_expires_tv64( & timer)
1941  out :
1942  destroy_hrtimer_on_stack( & timer)
1943  Return ret
Caller
NameDescribe
common_nsleepanosleep for monotonic and realtime clocks
SYSCALL_DEFINE4