Commit graph

7 commits

Author SHA1 Message Date
Artem Bunichev
389762add0 kqueue.2: Fix reference to unexisting kevent1()
kqueue1() was meant.

While here, make the wording in the AUTHORS section more clear.

PR:		291908
Fixes:		9b1585384d ("kqueue.2: Editorial pass")
Reviewed by:	kib, dab
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54858

(cherry picked from commit 4efe75af0869dd71a26685c432e5284d71bf4dc8)
2026-02-09 18:03:41 +00:00
Konstantin Belousov
3aae49be3d kqueue.2: document KQUEUE_CPONFORK
(cherry picked from commit a4981ededef3c2d867ddd991905e4b65bc917a62)
2025-11-01 02:43:14 +02:00
Jamie Gritton
9d7f89ef26 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.

(cherry picked from commit 66d8ffe3046ded1eb3f78599c6af8eb965482ef5)
2025-09-14 20:33:48 -07:00
Jamie Gritton
1a849ff1e9 jail: simplify EVFILT_JAIL events
Instead of using the EVFILT_PROC model of attempting to automatically
register new events when a child jail is created, just give a single
event when a child jail is created.  As was already done with jail
attach events, make a best-effort report of the added jail's id in
kn_data.  If the are multiple NOTE_JAIL_CHILD and/or NOTE_JAIL_ATTACH
events, set the NOTE_JAIL_MULTI flag, and don't report anything in
data, indicating that the caller will need to query the system state
on their own.

(cherry picked from commit dbcaac13e49c88d1c077f34f56dd2b7ba77a145a)
2025-09-14 20:33:18 -07:00
Jamie Gritton
1bd74d201a jail: add kqueue(2) support for jails
Add kqueue tracking to jails, inspired by how it's done with processes.
EVFILT_JAIL takes a jail ID, and tracks with NOTE_JAIL_SET,
NOTE_JAIL_ATTACH, NOTE_JAIL_REMOVE, and NOTE_JAIL_CHILD. It also uses
the NOTE_TRACK mechanism that EVFILT_PROC uses, using the same result
flags (NOTE_CHILD and NOTE_TRACKERR).

Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D51940
2025-09-04 11:56:56 -07:00
John Baldwin
9b1585384d kqueue.2: Editorial pass
- Use consistent language to describe user values unchanged by the
  kernel.

- Replace passive language with active in a few places.

- Add a history note for kqueuex() and kqueue1().

- Add an MLINK and synopsis for kqueue1().

- Various wording and markup tweaks.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D48203
2024-12-30 14:09:48 -05:00
Brooks Davis
8269e7673c libsys: relocate implementations and manpages
Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths to allow libc to find them in their new home.

Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
2024-02-05 20:34:55 +00:00
Renamed from lib/libc/sys/kqueue.2 (Browse further)