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/compat/linux/linux_timer.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2014 Bjoern A. Zeeb
    3  * All rights reserved.
    4  *
    5  * This software was developed by SRI International and the University of
    6  * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-11-C-0249
    7  * ("MRC2"), as part of the DARPA MRC research programme.
    8  *
    9  * Redistribution and use in source and binary forms, with or without
   10  * modification, are permitted provided that the following conditions
   11  * are met:
   12  * 1. Redistributions of source code must retain the above copyright
   13  *    notice, this list of conditions and the following disclaimer.
   14  * 2. Redistributions in binary form must reproduce the above copyright
   15  *    notice, this list of conditions and the following disclaimer in the
   16  *    documentation and/or other materials provided with the distribution.
   17  *
   18  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   19  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   21  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   22  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   23  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   24  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   25  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   26  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   27  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   28  * SUCH DAMAGE.
   29  *
   30  * $FreeBSD: releng/10.2/sys/compat/linux/linux_timer.h 272020 2014-09-23 07:50:04Z bz $
   31  */
   32 
   33 #ifndef _LINUX_TIMER_H
   34 #define _LINUX_TIMER_H
   35 
   36 #ifndef __LINUX_ARCH_SIGEV_PREAMBLE_SIZE
   37 #define __LINUX_ARCH_SIGEV_PREAMBLE_SIZE        \
   38         (sizeof(l_int) * 2 + sizeof(l_sigval_t))
   39 #endif
   40 
   41 #define LINUX_SIGEV_MAX_SIZE                    64
   42 #define LINUX_SIGEV_PAD_SIZE                    \
   43         ((LINUX_SIGEV_MAX_SIZE - __LINUX_ARCH_SIGEV_PREAMBLE_SIZE) / \
   44         sizeof(l_int))
   45 
   46 #define LINUX_CLOCK_REALTIME                    0
   47 #define LINUX_CLOCK_MONOTONIC                   1
   48 #define LINUX_CLOCK_PROCESS_CPUTIME_ID          2
   49 #define LINUX_CLOCK_THREAD_CPUTIME_ID           3
   50 #define LINUX_CLOCK_MONOTONIC_RAW               4
   51 #define LINUX_CLOCK_REALTIME_COARSE             5
   52 #define LINUX_CLOCK_MONOTONIC_COARSE            6
   53 #define LINUX_CLOCK_BOOTTIME                    7
   54 #define LINUX_CLOCK_REALTIME_ALARM              8
   55 #define LINUX_CLOCK_BOOTTIME_ALARM              9
   56 #define LINUX_CLOCK_SGI_CYCLE                   10
   57 #define LINUX_CLOCK_TAI                         11
   58 
   59 #define L_SIGEV_SIGNAL                          0
   60 #define L_SIGEV_NONE                            1
   61 #define L_SIGEV_THREAD                          2
   62 #define L_SIGEV_THREAD_ID                       4
   63 
   64 #define TS_CP(src,dst,fld) do {                 \
   65         CP((src).fld,(dst).fld,tv_sec);         \
   66         CP((src).fld,(dst).fld,tv_nsec);        \
   67 } while (0)
   68 
   69 #define ITS_CP(src, dst) do {                   \
   70         TS_CP((src), (dst), it_interval);       \
   71         TS_CP((src), (dst), it_value);          \
   72 } while (0)
   73 
   74 struct l_sigevent {
   75         l_sigval_t sigev_value;
   76         l_int sigev_signo;
   77         l_int sigev_notify;
   78         union {
   79                 l_int _pad[LINUX_SIGEV_PAD_SIZE];
   80                 l_int _tid;
   81                 struct {
   82                         l_uintptr_t _function;
   83                         l_uintptr_t _attribute;
   84                 } _l_sigev_thread;
   85         } _l_sigev_un;
   86 }
   87 #if defined(__amd64__) && defined(COMPAT_LINUX32)
   88 __packed
   89 #endif
   90 ;
   91 
   92 struct l_itimerspec {
   93         struct l_timespec it_interval;
   94         struct l_timespec it_value;
   95 };
   96 
   97 #endif  /* _LINUX_TIMER_H */

Cache object: 34640f71ba70998a0e970f5dc59d01ed


[ 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.