shm

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPC_CREAT   = C.IPC_CREAT
	IPC_EXCL    = C.IPC_EXCL
	SHM_HUGETLB = C.SHM_HUGETLB
)

Variables

View Source
var (
	ErrInvalidShm        = errors.New("invalid shm")
	ErrUnableToAttachShm = errors.New("unable to attach shm")
	ErrUnableToCloseShm  = errors.New("unable to close shm")
)

Functions

func CloseShm

func CloseShm(shmid int, shmaddr unsafe.Pointer) (err error)

func CreateShm

func CreateShm(key types.Key_t, size types.Size_t, isUseHugeTlb bool) (shmid int, shmaddr unsafe.Pointer, isNew bool, err error)

func OpenShm

func OpenShm(key types.Key_t, size types.Size_t, is_usehugetlb bool) (shmid int, shmaddr unsafe.Pointer, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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