函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hrtimer_nanosleep

函数原型:long hrtimer_nanosleep(const struct timespec64 *rqtp, const enum hrtimer_mode mode, const clockid_t clockid)

返回类型:long

参数:

类型参数名称
const struct timespec64 *rqtp
const enum hrtimer_modemode
const clockid_tclockid
1918  ret等于0
1921  slack等于timer_slack_ns
1922  如果dl_task(当前进程)或rt_task(当前进程)则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  如果ret不等于负start by calling sys_restart_syscall 则转到:out
1932  如果mode恒等于 Time value is absolute
1933  ret等于负start if no handler..
1934  转到: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  返回:ret
调用者
名称描述
common_nsleepanosleep for monotonic and realtime clocks
SYSCALL_DEFINE4