函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE2

函数原型:SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp)

返回类型:

参数:

107  struct timespec64 rtn_tp = { seconds = 0, nanoseconds = hrtimer_resolution, }
113  :which_clock恒等于The IDs of the various system clocks (for POSIX.1b interval timers):
114  :which_clock恒等于CLOCK_MONOTONIC
115  :which_clock恒等于CLOCK_BOOTTIME
116  如果put_timespec64( & rtn_tp, tp)则返回:负EFAULT
118  返回:0
119  默认
120  返回:负EINVAL