From f756c911681d7730ca34c23b69dbdb6143965858 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 7 Sep 2021 11:17:33 -0400 Subject: [PATCH] kqueue.2: Document the fact that EVFILT_READ can be used on kqueues Reviewed by: bcr, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31864 --- lib/libc/sys/kqueue.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 index 9be380bb5d9..ed737c626ef 100644 --- a/lib/libc/sys/kqueue.2 +++ b/lib/libc/sys/kqueue.2 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 26, 2021 +.Dd September 7, 2021 .Dt KQUEUE 2 .Os .Sh NAME @@ -346,6 +346,10 @@ Returns when the counter is greater than 0; .Va data contains the counter value, which must be cast to .Vt uint64_t . +.It Kqueues +Returns when pending events are present on the queue; +.Va data +contains the number of events available. .El .It Dv EVFILT_WRITE Takes a descriptor as the identifier, and returns whenever