| #
4efe75af
|
| 25-Jan-2026 |
Artem Bunichev <tembun@bk.ru> |
kqueue.2: Fix reference to unexisting kevent1()
kqueue1() was meant.
While here, make the wording in the AUTHORS section more clear.
PR: 291908 Fixes: 9b1585384d53 ("kqueue.2: Editorial pass") R
kqueue.2: Fix reference to unexisting kevent1()
kqueue1() was meant.
While here, make the wording in the AUTHORS section more clear.
PR: 291908 Fixes: 9b1585384d53 ("kqueue.2: Editorial pass") Reviewed by: kib, dab MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54858
show more ...
|
| #
a4981ede
|
| 08-Oct-2025 |
Konstantin Belousov <kib@FreeBSD.org> |
kqueue.2: document KQUEUE_CPONFORK
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D52045
|
| #
66d8ffe3
|
| 12-Sep-2025 |
Jamie Gritton <jamie@FreeBSD.org> |
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:
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
show more ...
|
| #
dbcaac13
|
| 12-Sep-2025 |
Jamie Gritton <jamie@FreeBSD.org> |
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 i
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.
MFC after: 3 days
show more ...
|
| #
1bd74d20
|
| 04-Sep-2025 |
Jamie Gritton <jamie@FreeBSD.org> |
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_
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
show more ...
|
| #
9b158538
|
| 30-Dec-2024 |
John Baldwin <jhb@FreeBSD.org> |
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
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
show more ...
|
| #
8269e767
|
| 14-Nov-2023 |
Brooks Davis <brooks@FreeBSD.org> |
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
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
show more ...
|
| #
fa9896e0
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
| #
54579376
|
| 31-Mar-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
Change kqueue1() to be compatible with NetBSD
by making it accept some open(2) flags. More precisely, only O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag for kqueuex(2)
Change kqueue1() to be compatible with NetBSD
by making it accept some open(2) flags. More precisely, only O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag for kqueuex(2), and O_NONBLOCK is silently ignored.
Reported and tested by: vishwin Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39377
show more ...
|
| #
20c9c3be
|
| 31-Mar-2023 |
Ed Maste <emaste@FreeBSD.org> |
kqueue: add close() calls to man page example
There is no real need to close descriptors before a process exits, but these close calls demonstrate by example that kqueue descriptors occupy the same
kqueue: add close() calls to man page example
There is no real need to close descriptors before a process exits, but these close calls demonstrate by example that kqueue descriptors occupy the same namespace as other file descriptors.
Reviewed by: fernape, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39376
show more ...
|
| #
dac31024
|
| 31-Mar-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
Rename kqueue1(2) to kqueuex(2) to avoid compat issues with NetBSD
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39377
|
| #
d860991a
|
| 31-Mar-2023 |
Ed Maste <emaste@FreeBSD.org> |
kqueue: tidy up indentation in man page example
Fixes: e07b0c12ba64 ("[patch][doc] Fix EXAMPLE in kqueue(2)") Sponsored by: The FreeBSD Foundation
|
| #
f2ec444b
|
| 25-Mar-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
kqueue1(2): document
Reviewed by: emaste, jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39271
|
| #
6405997f
|
| 20-Jun-2022 |
Mark Johnston <markj@FreeBSD.org> |
kevent.2: Add an xref to listen.2
MFC after: 1 week Sponsored by: The FreeBSD Foundation
|
| #
14c99b43
|
| 14-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
kqueue: Fix kqueue(2) man page.
Remove bogus BUGS note about timeout limit to 24 hours, that's not true since callouting project import.
Reviewed by: mav Differential revision: https://reviews.fre
kqueue: Fix kqueue(2) man page.
Remove bogus BUGS note about timeout limit to 24 hours, that's not true since callouting project import.
Reviewed by: mav Differential revision: https://reviews.freebsd.org/D35206 MFC after: 2 weeks
show more ...
|
| #
e07b0c12
|
| 11-Apr-2022 |
Fernando Apesteguía <fernape@FreeBSD.org> |
[patch][doc] Fix EXAMPLE in kqueue(2)
The error control was not properly implemented. "changelist" is const, hence event.flags is never changed by the syscall.
PR: 196844 Reported by: eugen@ Review
[patch][doc] Fix EXAMPLE in kqueue(2)
The error control was not properly implemented. "changelist" is const, hence event.flags is never changed by the syscall.
PR: 196844 Reported by: eugen@ Reviewed by: PauAmma <pauamma@gundo.com> Approved by: eugen@ Fixes: 8c231786f01b9f8614e2fe5b47196db1caa7a772
show more ...
|
| #
7406ec4e
|
| 19-Jan-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
kqueue(2): Add note about format of the data for NOTE_EXIT
Noted by: Dave Baukus <daveb@spectralogic.com> PR: 261346 MFC after: 3 days Sponsored by: The FreeBSD Foundation
|
| #
426682b0
|
| 26-Oct-2021 |
Mark Johnston <markj@FreeBSD.org> |
bpf: Fix the write filter for detached descriptors
A BPF descriptor only has an associated interface descriptor once it is attached to an interface, e.g., with BIOCSETIF. Avoid dereferencing a NULL
bpf: Fix the write filter for detached descriptors
A BPF descriptor only has an associated interface descriptor once it is attached to an interface, e.g., with BIOCSETIF. Avoid dereferencing a NULL pointer in filt_bpfwrite() if the BPF descriptor is not attached.
Reviewed by: ae Reported by: syzbot+ae45d5166afe15a5a21d@syzkaller.appspotmail.com Fixes: ded77e0237a8 ("Allow the BPF to be select for write.") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32561
show more ...
|
| #
ded77e02
|
| 10-Oct-2021 |
Hartmut Brandt <harti@FreeBSD.org> |
Allow the BPF to be select for write. This is needed for boost:asio which otherwise fails to handle BPFs. Reviewed by: ae Differential Revision: https://reviews.freebsd.org/D31967
|
| #
0f43c5b5
|
| 30-Sep-2021 |
Kyle Evans <kevans@FreeBSD.org> |
kqueue: clean up some igor and mandoc -Tlint warnings
|
| #
4b5554ce
|
| 30-Sep-2021 |
Kyle Evans <kevans@FreeBSD.org> |
kqueue: document how timers with low/past timeouts are handled
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D32237
|
| #
0321a799
|
| 24-Sep-2021 |
Nathaniel Wesley Filardo <nfilardo@microsoft.com> |
kqueue: Add EV_KEEPUDATA flag
When this flag is set, operations that update an existing kevent will not change the udata field. This can be used to NOTE_TRIGGER or EV_{EN,DIS}ABLE events without ov
kqueue: Add EV_KEEPUDATA flag
When this flag is set, operations that update an existing kevent will not change the udata field. This can be used to NOTE_TRIGGER or EV_{EN,DIS}ABLE events without overwriting the stashed pointer.
Reviewed by: Domagoj Stolfa <domagoj.stolfa@gmail.com> Obtained from: CheriBSD Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D30286
show more ...
|
| #
f756c911
|
| 07-Sep-2021 |
Mark Johnston <markj@FreeBSD.org> |
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/D3
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
show more ...
|
| #
e00bae5c
|
| 27-May-2021 |
Mark Johnston <markj@FreeBSD.org> |
kevent: Prohibit negative change and event list lengths
Previously, a negative change list length would be treated the same as an empty change list. A negative event list length would result in bog
kevent: Prohibit negative change and event list lengths
Previously, a negative change list length would be treated the same as an empty change list. A negative event list length would result in bogus copyouts. Make kevent(2) return EINVAL for both cases so that application bugs are more easily found, and to be more robust against future changes to kevent internals.
Reviewed by: imp, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30480
show more ...
|
| #
6d075fd9
|
| 23-Dec-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Document eventfd().
Submitted by: greg@unrelenting.technology Reviewed by: bcr, markj (previous version) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26668
|