memfd

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

Package memfd provides interface to Linux memfd to create and seal a memory file. Requires kernel >= 3.17

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DupToMemfd

func DupToMemfd(name string, reader io.Reader) (*os.File, error)

DupToMemfd reads content from reader to sealed (readonly) memfd for given name

func New

func New(name string) (*os.File, error)

New creates a new memfd, caller need to close the file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL