Function lrs::syscall::memfd_create

Creates a memfd.

Syntax

fn memfd_create(name: &CStr, flags: u32) -> i32

Arguments

NameDescription
name

The name of the pseudo-file.

flags

Flags to use for the new file.

Remarks

Unless lrs was compiled with the no-auto-cloexec flag, this function automatically adds the MFD_CLOEXEC flag.

See also