aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/kqueue.2
diff options
context:
space:
mode:
authorJamie Gritton <jamie@FreeBSD.org>2025-09-12 18:33:19 +0000
committerJamie Gritton <jamie@FreeBSD.org>2025-09-12 18:33:19 +0000
commit66d8ffe3046ded1eb3f78599c6af8eb965482ef5 (patch)
treebd06bf0f27321b41dcfa8b94c88e23a02ac5ffe9 /lib/libsys/kqueue.2
parentab2fea3f9a5a58f0ba90499ad3a8614e3dca0c5f (diff)
jaildesc: add kevent support
Give jail descriptors the same kevent flags as jails. Also fix the event reporting in jails, where it was including data for events the user didn't ask for. MFC after: 3 days
Diffstat (limited to 'lib/libsys/kqueue.2')
-rw-r--r--lib/libsys/kqueue.215
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libsys/kqueue.2 b/lib/libsys/kqueue.2
index aafb5317c5e0..96c9b0222a37 100644
--- a/lib/libsys/kqueue.2
+++ b/lib/libsys/kqueue.2
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd September 11, 2025
+.Dd September 12, 2025
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -638,6 +638,19 @@ or
.Dv NOTE_JAIL_CHILD
event has been received since the last call to
.Fn kevent .
+.It Dv EVFILT_JAILDESC
+Takes a jail descriptor returned by
+.Xr jail_set 2
+or
+.Xr jail_get 2
+as the identifier and the events to watch for in
+.Va fflags ,
+and returns when the jail performs one or more of the requested events.
+The events to monitor and the resulting
+.Va fflags
+are the same as those listed in
+.Dv EVFILT_JAIL ,
+above.
.It Dv EVFILT_TIMER
Establishes an arbitrary timer identified by
.Va ident .