Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  *  include/linux/timerfd.h
0004  *
0005  *  Copyright (C) 2007  Davide Libenzi <davidel@xmailserver.org>
0006  *
0007  */
0008 
0009 #ifndef _UAPI_LINUX_TIMERFD_H
0010 #define _UAPI_LINUX_TIMERFD_H
0011 
0012 #include <linux/types.h>
0013 
0014 /* For O_CLOEXEC and O_NONBLOCK */
0015 #include <linux/fcntl.h>
0016 
0017 /* For _IO helpers */
0018 #include <linux/ioctl.h>
0019 
0020 /*
0021  * CAREFUL: Check include/asm-generic/fcntl.h when defining
0022  * new flags, since they might collide with O_* ones. We want
0023  * to re-use O_* flags that couldn't possibly have a meaning
0024  * from eventfd, in order to leave a free define-space for
0025  * shared O_* flags.
0026  *
0027  * Also make sure to update the masks in include/linux/timerfd.h
0028  * when adding new flags.
0029  */
0030 #define TFD_TIMER_ABSTIME (1 << 0)
0031 #define TFD_TIMER_CANCEL_ON_SET (1 << 1)
0032 #define TFD_CLOEXEC O_CLOEXEC
0033 #define TFD_NONBLOCK O_NONBLOCK
0034 
0035 #define TFD_IOC_SET_TICKS   _IOW('T', 0, __u64)
0036 
0037 #endif /* _UAPI_LINUX_TIMERFD_H */