/[base]
ViewVC logotype

Revision 352703


Jump to revision: Previous Next
Author: kevans
Date: Wed Sep 25 18:03:18 2019 UTC (4 years, 9 months ago)
Changed paths: 9
Log Message:
Add linux-compatible memfd_create

memfd_create is effectively a SHM_ANON shm_open(2) mapping with optional
CLOEXEC and file sealing support. This is used by some mesa parts, some
linux libs, and qemu can also take advantage of it and uses the sealing to
prevent resizing the region.

This reimplements shm_open in terms of shm_open2(2) at the same time.

shm_open(2) will be moved to COMPAT12 shortly.

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


Changed paths

Path Details
Directoryhead/Makefile.inc1 modified , text changed
Directoryhead/lib/libc/include/libc_private.h modified , text changed
Directoryhead/lib/libc/sys/Makefile.inc modified , text changed
Directoryhead/lib/libc/sys/Symbol.map modified , text changed
Directoryhead/lib/libc/sys/shm_open.2 modified , text changed
Directoryhead/lib/libc/sys/shm_open.c added
Directoryhead/sys/sys/mman.h modified , text changed
Directoryhead/tests/sys/kern/Makefile modified , text changed
Directoryhead/tests/sys/kern/memfd_test.c added

  ViewVC Help
Powered by ViewVC 1.1.27