Function report |
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 activity | Download SCCT | Chinese |
Name:hrtimer_nanosleep
Proto:long hrtimer_nanosleep(const struct timespec64 *rqtp, const enum hrtimer_mode mode, const clockid_t clockid)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
const struct timespec64 * | rqtp | |
const enum hrtimer_mode | mode | |
const clockid_t | clockid |
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) |
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 |
1940 | expires = hrtimer_get_expires_tv64( & timer) |
1941 | out : |
1942 | destroy_hrtimer_on_stack( & timer) |
1943 | Return ret |
Name | Describe |
---|---|
common_nsleep | anosleep for monotonic and realtime clocks |
SYSCALL_DEFINE4 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |