HomeFreeBSD

kern: allow kern_shm_open2 of an anonymous preconstructed shmfd

Description

kern: allow kern_shm_open2 of an anonymous preconstructed shmfd

The motivation here is for future changes to the coredump code to be
able to build up a coredump into a shmfd instead of a vnode, which then
gets tapped out to userland via a character device. This also opens up
the possibility that it's useful for the kernel to be able to construct
a shmfd and pass it out to a process that shouldn't need to write to it.

Reviewed by: emaste, kib, markj
Differential Revision: https://reviews.freebsd.org/D51336

Details

Provenance
kevansAuthored on Jul 14 2025, 11:28 PM
Reviewer
emaste
Differential Revision
D51336: kern: allow kern_shm_open2 of an anonymous preconstructed shmfd
Parents
rG8df080625bd3: unistd.h: Add new Solaris compatible pathconf names
Branches
Unknown
Tags
Unknown