Creates a memory-backed file.
impl File {
fn memory<N>(name: N, flags: MemfdFlags) -> Result<File, Errno>
where N: ToCStr,
}| Name | Description |
|---|---|
| name | The name of the file. |
| flags | Flags used to create the file. |
This separate from FILE_TEMP in that the created file is located in memory and that it can be sealed.
The minimum required kernel version is 3.17.