函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_clock_gettime

函数原型:int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp)

返回类型:int

参数:

类型参数名称
clockid_twhich_clock
struct timespec64 *tp
75  :which_clock恒等于The IDs of the various system clocks (for POSIX.1b interval timers):
76  ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).
77  退出
78  :which_clock恒等于CLOCK_MONOTONIC
79  ktime_get_ts64 - get the monotonic clock in timespec64 format*@ts: pointer to timespec variable* The function calculates the monotonic clock from the realtime* clock and the wall_to_monotonic offset and stores the result
80  退出
81  :which_clock恒等于CLOCK_BOOTTIME
82  mespec64/time64_t interfaces utilizing the ktime based ones* for API completeness, these could be implemented more efficiently* if needed.
83  退出
84  默认
85  返回:负EINVAL
88  返回:0
调用者
名称描述
SYSCALL_DEFINE2