ipcmk

make various IPC resources

TLDR

Create a shared memory segment

>_ ipcmk --shmem [segment_size_in_bytes]
copy

Create a semaphore

>_ ipcmk --semaphore [element_size]
copy

Create a message queue

>_ ipcmk --queue
copy

Create a shared memory segment with specific permissions (default is 0644)

>_ ipcmk --shmem [segment_size_in_bytes] [octal_permissons]
copy

SYNOPSIS

ipcmk [options]

DESCRIPTION

ipcmk allows you to create shared memory segments, message queues, and semaphore arrays.

OPTIONS

Resources can be specified with these options:

-M,--shmemsize Create a shared memory segment of size bytes. The size argument may be followed by the multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on for GiB, etc. (the "iB" is optional, e.g., "K" has the same meaning as "KiB") or the suffixes KB (=1000), MB (=1000*1000), and so on for GB, etc.

-Q,--queue Create a message queue.

-S,--semaphorenumber Create a semaphore array with number of elements.

Other options are:

-p,--modemode Access permissions for the resource. Default is 0644.

-V,--version Display version information and exit.

-h,--help Display help text and exit.

AVAILABILITY

The ipcmk command is part of the util-linux package and is available from https:// www.kernel.org /pub /linux /utils /util-linux/ Linux Kernel Archive .

SEE ALSO

ipcrm(1), ipcs(1)

AUTHOR

hayden.james@gmail.com Hayden A. James

Copied to clipboard
free 100$ digital ocean credit