shm

package
v0.0.0-...-90d4239 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package shm implements SysV shared memory on Linux.

Index

Constants

View Source
const IPC_CREAT = 00001000 /* create if key is nonexistent */
View Source
const IPC_EXCL = 00002000 /* fail if key exists */
View Source
const IPC_INFO = 3 /* see ipcs */
View Source
const IPC_RMID = 0 /* remove resource */
View Source
const IPC_SET = 1 /* set ipc_perm options */
View Source
const IPC_STAT = 2 /* get ipc_perm options */

Variables

This section is empty.

Functions

func DestroySegment

func DestroySegment(id int) error

Types

type Segment

type Segment struct {
	ID   int
	Size int
}

func Create

func Create(size int) (*Segment, error)

func Open

func Open(id int) (*Segment, error)

func OpenSegment

func OpenSegment(size int, flags int, perms os.FileMode) (*Segment, error)

func (*Segment) Attach

func (self *Segment) Attach() (unsafe.Pointer, error)

func (*Segment) Destroy

func (self *Segment) Destroy() error

func (*Segment) Detach

func (self *Segment) Detach(addr unsafe.Pointer) error

Jump to

Keyboard shortcuts

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