diff options
author | bapt <bapt@FreeBSD.org> | 2014-07-18 14:27:04 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-07-18 14:27:04 +0000 |
commit | 2592b8802eee2cd380b4c8ed5056ad4bfa31172a (patch) | |
tree | 3fa67f166c1214a4d21edc2a9631030e8b52a12e /sys/sys/event.h | |
parent | 53306c26de321a85d416c01e88e7df1dd71db6dd (diff) | |
download | FreeBSD-src-2592b8802eee2cd380b4c8ed5056ad4bfa31172a.zip FreeBSD-src-2592b8802eee2cd380b4c8ed5056ad4bfa31172a.tar.gz |
Extend kqueue's EVFILT_TIMER by adding precision unit flags support
Define the precision macros as bits sets to conform with XNU equivalent.
Test fflags passed for EVFILT_TIMER and return EINVAL in case an invalid flag
is passed.
Phabric: https://phabric.freebsd.org/D421
Reviewed by: kib
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 1f27c4d..7b0b798 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -133,6 +133,12 @@ struct kevent { #define NOTE_TRACKERR 0x00000002 /* could not track child */ #define NOTE_CHILD 0x00000004 /* am a child process */ +/* additional flags for EVFILE_TIMER */ +#define NOTE_SECONDS 0x00000001 /* data is seconds */ +#define NOTE_MSECONDS 0x00000002 /* data is milliseconds */ +#define NOTE_USECONDS 0x00000004 /* data is microseconds */ +#define NOTE_NSECONDS 0x00000008 /* data is nanoseconds */ + struct knote; SLIST_HEAD(klist, knote); struct kqueue; |