Function report |
Source Code:kernel\time\posix-stubs.c |
Create Date:2022-07-28 10:49:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:SYSCALL_DEFINE2
Proto:SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp)
Type:
Parameter:Nothing
107 | struct timespec64 rtn_tp = { seconds = 0, nanoseconds = hrtimer_resolution, } |
114 | Case which_clock == CLOCK_MONOTONIC |
115 | Case which_clock == CLOCK_BOOTTIME |
116 | If put_timespec64( & rtn_tp, tp) Then Return -EFAULT |
118 | Return 0 |
119 | Default |
120 | Return -EINVAL |
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 |