| Main index | Section 1 | Options |
Unlinking removes the name from the system and, when the last process unmaps the segment and closes file descriptor pointing to the segment, frees underlying memory.
The number of hard links as displayed by the stat subcommand, is equal to the number of references to the underlying VM object. It is almost always equal to the number of mappings +1, except for transient references.
The following subcommands are provided:
| create |
Create segments with the specified paths, if they do not already exist.
The optional pagesize argument specifies the size of the virtual pages used to map the object with mmap(2). By default, the system page size is used, but on some platforms a larger page size can be specified. The size of an object backed by large pages must be a multiple of the specified page size. The hw.pagesizes sysctl variable lists the available page sizes. The optional numerical mode argument specifies the initial access mode. |
| rm | Unlink the paths specified. |
| ls |
List all linked named shared memory segments visible to the caller.
For each segment, the user and group owner, size, and path are displayed.
The
|
| dump | Output raw bytes values from the segment to standard output. |
| stat | Print metadata for the specified path, in the format similar to the stat(1) utility. |
| truncate | |
|
Change the length of the segments.
Argument to the
| |
For some commands, the following options may be provided:
| | |
| If specified, requests human-readable display of size, see humanize_number(3). | |
| | |
| Prevent translation of owner and group into symbolic names using name-switch services, instead the raw numeric values are printed. | |
posixshmcontrol dump /1 | hexdump -C
posixshmcontrol create /2
posixshmcontrol truncate -s 1m /2
| POSIXSHMCONTROL (1) | May 25, 2023 |
| Main index | Section 1 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | LISP = Lots of Irritating Silly Parentheses | ” |