blob: 0c33260e5dfbf55d5646a7c2bc44791fe81c47a4 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Davide Libenzib215e282007-05-10 22:23:16 -07002/*
3 * include/linux/timerfd.h
4 *
5 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
6 *
7 */
8
9#ifndef _LINUX_TIMERFD_H
10#define _LINUX_TIMERFD_H
11
Mike Frysinger575b1962017-01-10 16:58:30 -080012#include <uapi/linux/timerfd.h>
Davide Libenzib215e282007-05-10 22:23:16 -070013
Davide Libenzi610d18f2009-02-18 14:48:18 -080014#define TFD_SHARED_FCNTL_FLAGS (TFD_CLOEXEC | TFD_NONBLOCK)
15/* Flags for timerfd_create. */
16#define TFD_CREATE_FLAGS TFD_SHARED_FCNTL_FLAGS
17/* Flags for timerfd_settime. */
Thomas Gleixner9ec26902011-05-20 16:18:50 +020018#define TFD_SETTIME_FLAGS (TFD_TIMER_ABSTIME | TFD_TIMER_CANCEL_ON_SET)
Davide Libenzib215e282007-05-10 22:23:16 -070019
20#endif /* _LINUX_TIMERFD_H */