summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordab <dab@FreeBSD.org>2018-07-18 13:04:03 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-08 08:15:17 +0200
commitac824fffa0b6c2aad115f410fe52c20732b492fe (patch)
treefbf03866a8403b4c1ea72690fad12baeee63a722
parentAddress some (although not all) style(9) issues in event.h after r335776. (diff)
downloadrtems-ac824fffa0b6c2aad115f410fe52c20732b492fe.tar.bz2
Make the definition of struct kevent in event.h match what the man page for kevent(2) says.
This is a trivial comment-only fix. The man page for kevent(2) gives the definition of struct kevent, including a comment on each field. The actual definition in sys/event.h omitted the comments on some fields. Add the comments in. Not only does this make the man page and include file agree, but the comments are useful in and of themselves. Reviewed by: kib (D15778: commented that this should be a separate commit) MFC after: 3 days Sponsored by: Dell EMC
-rw-r--r--cpukit/include/sys/event.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/include/sys/event.h b/cpukit/include/sys/event.h
index bca5ccce72..062190c341 100644
--- a/cpukit/include/sys/event.h
+++ b/cpukit/include/sys/event.h
@@ -83,11 +83,11 @@
struct kevent {
__uintptr_t ident; /* identifier for this event */
short filter; /* filter for event */
- unsigned short flags;
- unsigned int fflags;
- __int64_t data;
+ unsigned short flags; /* action flags for kqueue */
+ unsigned int fflags; /* filter flag value */
+ __int64_t data; /* filter data value */
void *udata; /* opaque user data identifier */
- __uint64_t ext[4];
+ __uint64_t ext[4]; /* extensions */
};
#if defined(_WANT_FREEBSD11_KEVENT)