Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/specialfd.h
Show All 26 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _SYS_SPECIALFD_H_ | #ifndef _SYS_SPECIALFD_H_ | ||||
#define _SYS_SPECIALFD_H_ | #define _SYS_SPECIALFD_H_ | ||||
enum specialfd_type { | enum specialfd_type { | ||||
SPECIALFD_EVENTFD = 1, | SPECIALFD_EVENTFD = 1, | ||||
SPECIALFD_TIMERFD_CREATE = 2, | |||||
kib: Comma | |||||
SPECIALFD_TIMERFD_SETTIME = 3, | |||||
SPECIALFD_TIMERFD_GETTIME = 4 | |||||
}; | }; | ||||
struct specialfd_eventfd { | struct specialfd_eventfd { | ||||
unsigned int initval; | unsigned int initval; | ||||
int flags; | int flags; | ||||
}; | |||||
struct specialfd_timerfd_create { | |||||
int clockid; | |||||
int flags; | |||||
}; | |||||
struct specialfd_timerfd_gettime { | |||||
int fd; | |||||
struct itimerspec *curr_value; | |||||
}; | |||||
struct specialfd_timerfd_settime { | |||||
int fd; | |||||
int flags; | |||||
const struct itimerspec *new_value; | |||||
struct itimerspec *old_value; | |||||
}; | }; | ||||
#endif /* !_SYS_SPECIALFD_H_ */ | #endif /* !_SYS_SPECIALFD_H_ */ |
Comma