Xenomai 3.3.2
Loading...
Searching...
No Matches
timerfd.h
1/*
2 * Copyright (C) 2014 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18#ifndef TIMERFD_H
19#define TIMERFD_H
20
21#include <linux/time.h>
22#include <xenomai/posix/syscall.h>
23
24int __cobalt_timerfd_settime(int fd, int flags,
25 const struct itimerspec64 *new_value,
26 struct itimerspec64 *old_value);
27
28int __cobalt_timerfd_gettime(int fd,
29 struct itimerspec64 *value);
30
31COBALT_SYSCALL_DECL(timerfd_create,
32 (int clockid, int flags));
33
34COBALT_SYSCALL_DECL(timerfd_settime,
35 (int fd, int flags,
36 const struct old_itimerspec32 __user *new_value,
37 struct old_itimerspec32 __user *old_value));
38
39COBALT_SYSCALL_DECL(timerfd_settime64,
40 (int fd, int flags,
41 const struct __kernel_itimerspec __user *new_value,
42 struct __kernel_itimerspec __user *old_value));
43
44COBALT_SYSCALL_DECL(timerfd_gettime,
45 (int fd, struct old_itimerspec32 __user *curr_value));
46
47COBALT_SYSCALL_DECL(timerfd_gettime64,
48 (int fd, struct __kernel_itimerspec __user *curr_value));
49
50#endif /* TIMERFD_H */