函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_cpu_clock_getres

函数原型:static int posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp)

返回类型:int

参数:

类型参数名称
const clockid_twhich_clock
struct timespec64 *tp
165  error等于validate_clock_permissions(which_clock)
167  如果非error
168  seconds 等于0
169  nanoseconds 等于NSEC_PER_SECHZ减1的差除HZ
170  如果CPUCLOCK_WHICH(which_clock)恒等于CPUCLOCK_SCHED
176  nanoseconds 等于1
179  返回:error
调用者
名称描述
process_cpu_clock_getres
thread_cpu_clock_getres