Method lrs::file::File::memory

Creates a memory-backed file.

Syntax

impl File {
    fn memory<N>(name: N, flags: MemfdFlags) -> Result<File, Errno>
        where N: ToCStr,
}

Arguments

NameDescription
name

The name of the file.

flags

Flags used to create the file.

Remarks

This separate from FILE_TEMP in that the created file is located in memory and that it can be sealed.

Kernel versions

The minimum required kernel version is 3.17.

See also