shm

package
v0.0.0-...-3bbe0ea Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPC_RMID  = 0
	IPC_SET   = 1
	IPC_STAT  = 2
	IPC_INFO  = 3
	IPC_CREAT = 00001000
	IPC_EXCL  = 00002000
)

Variables

This section is empty.

Functions

func ShmAt

func ShmAt(shmid uintptr) (uintptr, error)

func ShmCreate

func ShmCreate(shmKey uintptr, shmSize uint32) (uintptr, error)

func ShmCtrl

func ShmCtrl(shmid uintptr, ds *ShmIdDs) error

func ShmDt

func ShmDt(shmaddr uintptr) error

func ShmGet

func ShmGet(shmKey uintptr) (uintptr, error)

Types

type ShmIdDs

type ShmIdDs struct {
	IpcPerm struct {
		// contains filtered or unexported fields
	}
	ShmSegsz   uint32
	ShmAtime   uint64
	ShmDtime   uint64
	ShmCtime   uint64
	ShmCpid    uint32
	ShmLpid    uint32
	ShmNattch  uint16
	ShmUnused  uint16
	ShmUnused2 uintptr
	ShmUnused3 uintptr
}

Jump to

Keyboard shortcuts

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