package
Version:
v0.0.0-...-f7ad032
Opens a new window with list of versions in this module.
Published: Dec 24, 2024
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 21
Opens a new window with list of known importers.
Documentation
¶
Package memutil provides utilities for working with shared memory files.
-
func CreateMemFD(name string, flags int) (int, error)
-
func MapFile(addr, size, prot, flags, fd, offset uintptr) (uintptr, error)
-
func MapSlice(addr, size, prot, flags, fd, offset uintptr) ([]byte, error)
-
func UnmapSlice(slice []byte) error
CreateMemFD creates a memfd file and returns the fd.
MapFile returns a memory mapping configured by the given options as per
mmap(2).
MapSlice is like MapFile, but returns a slice instead of a uintptr.
UnmapSlice unmaps a mapping returned by MapSlice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.