modulepackage
0.0.0-20230106080200-1ec4c2ba35cf
Repository: https://github.com/tmthrgd/go-shm.git
Documentation: pkg.go.dev
# README
go-shm
go-shm provides functions to open and unlink shared memory without relying on cgo (on Linux).
It provides an implementation of shm_open
and
shm_unlink
from sys/mman.h
.
Download
go get github.com/tmthrgd/go-shm
License
Unless otherwise noted, the go-shm source files are distributed under the Modified BSD License found in the LICENSE file.
# Functions
Taken from shm_open(3): shm_open() creates and opens a new, or opens an existing, POSIX shared memory object.
Taken from shm_unlink(3): The operation of shm_unlink() is analogous to unlink(2): it removes a shared memory object name, and, once all processes have unmapped the object, de-allocates and destroys the contents of the associated memory region.