memfd

package
v0.0.0-...-c269f4c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 4 Imported by: 0

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