The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/config/kernel-ktime.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 dnl #
    2 dnl # 4.18: ktime_get_coarse_real_ts64() replaces current_kernel_time64().
    3 dnl #
    4 AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME_GET_COARSE_REAL_TS64], [
    5         ZFS_LINUX_TEST_SRC([ktime_get_coarse_real_ts64], [
    6                 #include <linux/mm.h>
    7         ], [
    8                 struct timespec64 ts;
    9                 ktime_get_coarse_real_ts64(&ts);
   10         ])
   11 ])
   12 
   13 AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64], [
   14         AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists])
   15         ZFS_LINUX_TEST_RESULT([ktime_get_coarse_real_ts64], [
   16                 AC_MSG_RESULT(yes)
   17                 AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1,
   18                     [ktime_get_coarse_real_ts64() exists])
   19         ], [
   20                 AC_MSG_RESULT(no)
   21         ])
   22 ])
   23 
   24 dnl #
   25 dnl # 4.18: ktime_get_raw_ts64() replaces getrawmonotonic64().
   26 dnl #
   27 AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME_GET_RAW_TS64], [
   28         ZFS_LINUX_TEST_SRC([ktime_get_raw_ts64], [
   29                 #include <linux/mm.h>
   30         ], [
   31                 struct timespec64 ts;
   32                 ktime_get_raw_ts64(&ts);
   33         ])
   34 ])
   35 
   36 AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_RAW_TS64], [
   37         AC_MSG_CHECKING([whether ktime_get_raw_ts64() exists])
   38         ZFS_LINUX_TEST_RESULT([ktime_get_raw_ts64], [
   39                 AC_MSG_RESULT(yes)
   40                 AC_DEFINE(HAVE_KTIME_GET_RAW_TS64, 1,
   41                     [ktime_get_raw_ts64() exists])
   42         ], [
   43                 AC_MSG_RESULT(no)
   44         ])
   45 ])
   46 
   47 AC_DEFUN([ZFS_AC_KERNEL_SRC_KTIME], [
   48         ZFS_AC_KERNEL_SRC_KTIME_GET_COARSE_REAL_TS64
   49         ZFS_AC_KERNEL_SRC_KTIME_GET_RAW_TS64
   50 ])
   51 
   52 AC_DEFUN([ZFS_AC_KERNEL_KTIME], [
   53         ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64
   54         ZFS_AC_KERNEL_KTIME_GET_RAW_TS64
   55 ])

Cache object: a8d775c32c340131af28a5cb3301f9d0


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.