ktime_get_real_ts64函数诞生于linux v3.17,当时是一个宏定义如下: externvoidgetnstimeofday64(structtimespec64*tv);#define ktime_get_real_ts64(ts) getnstimeofday64(ts) 在linux v5.0中,也就是do_gettimeofday正式退役时,我们看看ktime_get_real_ts64的样子。其在kernel/time/timekeeping.c中的定义如下...
函数名称:ktime_get_coarse_real_ts64 函数原型:void ktime_get_coarse_real_ts64(struct timespec64 *ts) 返回类型:void 参数: 类型参数名称 struct timespec64 * ts 2162 tk等于timekeeper 2165 循环 2166 seq等于ad_seqcount_begin - begin a seq-read critical section*@s: pointer to seqcount_t* Ret...
ZFS_LINUX_TEST_SRC([ktime_get_coarse_real_ts64],[ #include <linux/mm.h> ],[ struct timespec64 ts; ktime_get_coarse_real_ts64(&ts); ]) ]) AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64],[ AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists]) ...
Name: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). Proto:void ktime_get_real_ts64(struct timespec64 *ts) Type:void Parameter: TypeParameterName struct timespec64...
至linux v2.0版本,正式升级为外部接口。其定义位于arch/i386/kernel/time.c。然而,随着linux v5.0的更新,do_gettimeofday退出历史舞台。原因在于struct timeval在32bit机器上面临2038问题。替代函数为ktime_get_real_ts64。这一替代被官方文档明确指出,详细信息可参考"linux kernel documentation"中的...
ZFS_LINUX_TEST_RESULT([ktime_get_coarse_real_ts64],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64,1, [ktime_get_coarse_real_ts64() exists]) ],[ AC_MSG_RESULT(no) ]) ]) dnl# dnl# 4.18: ktime_get_raw_ts64() replaces getrawmonotonic64(). ...
至linux v2.0版本,正式升级为外部接口。其定义位于arch/i386/kernel/time.c。然而,随着linux v5.0的更新,do_gettimeofday退出历史舞台。原因在于struct timeval在32bit机器上面临2038问题。替代函数为ktime_get_real_ts64。这一替代被官方文档明确指出,详细信息可参考"linux kernel documentation"中的...
In "ioctl_cfg80211.c" I've replaced: struct timespec ts; get_monotonic_boottime(&ts); with: struct timespec64 ts; ktime_get_boottime_ts64(&ts); Then the DKMS module compiles properly! Please could you adapt the code accordingly. ...
2166 2167 2168 2169 voidktime_get_coarse_real_ts64(structtimespec64 *ts) { structtimekeeper *tk = &tk_core.timekeeper; unsignedintseq; do{ seq = read_seqcount_begin(&tk_core.seq); *ts = tk_xtime(tk); }while(read_seqcount_retry(&tk_core.seq, seq)); ...