package
0.0.0-20220323031208-a99fd5a1d443
Repository: https://github.com/iskraman/golang-modules.git
Documentation: pkg.go.dev

# README

shm

TravisCI Build Status GoDoc Go Report Card

shm implements System V shared memory functions (shmctl, shmget, shmat, shmdt) in pure Go (except solaris, see #24357).

Installation

go get -u github.com/gen2brain/shm

More

For System V Message Queue IPC (i.e. msgctl, msgget, msgrcv, msgsnd) see ipc.

# Functions

At attaches the shared memory segment identified by shmId.
Ctl performs the control operation specified by cmd on the shared memory segment whose identifier is given in shmId.
Dt detaches the shared memory segment.
Get allocates a shared memory segment.
Rm removes the shared memory segment.
Size returns size of shared memory segment.

# Constants

Create key if key does not exist.
Fail if key exists.
Return error on wait.
Private key.
Remove identifier.
Set `ipc_perm` options.
Get `ipc_perm' options.
Execution access.
Lock segment (root only).
Attach read-only access.
Take-over region on attach.
Round attach address to SHMLBA.
Unlock segment (root only).

# Structs

IdDs describes shared memory segment.
Perm is used to pass permission information to IPC operations.