ID EN
OS

memfd_create

Python 3.11

Create an anonymous file and return a file descriptor that refers to it. flags must be one of the os.MFD_* constants available on the system (or a bitwise ORed combination of them). By default, the new file descriptor is non-inheritable.

Syntax

PYTHON
os.memfd_create(name[, flags=os.MFD_CLOEXEC])

See Also

non-inheritable Availability