Function report |
Source Code:kernel\time\hrtimer.c |
Create Date:2022-07-28 10:41:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_nanosleep
Proto:static int __sched do_nanosleep(struct hrtimer_sleeper *t, enum hrtimer_mode mode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct hrtimer_sleeper * | t | |
enum hrtimer_mode | mode |
1869 | Do |
1873 | If Value is more likely to compile time(task) Then freezable_schedule() |
1877 | mode = Time value is absolute |
1879 | When task && Not signal_pending(current process) cycle |
1883 | If Not task Then Return 0 |
1886 | restart = restart_block |
1888 | rem = hrtimer_expires_remaining( & timer) |
1891 | If rem <= 0 Then Return 0 |
1895 | Return nanosleep_copyout(restart, & rmt) |
1897 | Return -start by calling sys_restart_syscall |
Name | Describe |
---|---|
hrtimer_nanosleep_restart | |
hrtimer_nanosleep |
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 |