HomeFreeBSD

kern/kern_event.c: extract kern_kqueue_alloc() from kern_kqueue()

Description

kern/kern_event.c: extract kern_kqueue_alloc() from kern_kqueue()

The new helper function allows to allocate a kqueue and its file,
without also allocating file descriptor.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D52045

Details

Provenance
kibAuthored on Aug 19 2025, 4:32 AM
Reviewer
markj
Differential Revision
D52045: Copy kqueues into the child on fork
Parents
rG47ed42f3f44c: kqueue_fo_release(): print filter with underflow
Branches
Unknown
Tags
Unknown