Reference

shmget(1)

allocate a System V IPC shared memory segment

NAME

shmget - allocate a System V IPC shared memory segment

SYNOPSIS

shmget [-k key] [-c security_context | -s sid] [-b size_in_bytes]

DESCRIPTION

shmget allocates a shared memory segment (creating it if necessary.) The id of the memory segment allocted is printed to standard output.

OPTIONS

-k

Key. Allocate a memory segment with the specified key.

-c

Security Context. Allocate a memory segment with the specified security context.

-s

Security Identifier. Allocate a memory segment with the specified security identifier.

-b

Size in Bytes. The size of the memory segment (in bytes) to create if a segment with the given key does not already exist.

SEE ALSO

shmsid(1), shmread(1), shmwrite(1), shmperm(1), shmget(2), shmget_secure(2).