---
name: "shmread"
section: "1"
platform: "linux"
package: "selinux"
version: "2002031409-4"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://carta.tech/man/shmread"
---

# shmread(1)

reads the state of a shared memory segment

## NAME

shmread - reads the state of a shared memory segment

## SYNOPSIS

**msgread** *-i id* *-o offset* *-l length*

## DESCRIPTION

**shmread** exercises the *shmat (2)* and *shmdt (2)* system calls to attach to a memory segment and read information out of it.

## OPTIONS

*-i* Shared Memory Segment ID.  The shared memory segment ID is required. *-o* Offset.  The offset (in bytes) within the segment to start reading. *-l* Length.  The number of bytes to read out of the segment.

## SEE ALSO

[**shmget**(1)](/man/shmget/1.md), [**shmsid**(1)](/man/shmsid/1.md), [**shmwrite**(1)](/man/shmwrite/1.md), [**shmperm**(1)](/man/shmperm/1.md), [**shmat**(2)](/man/shmat/2.md), [**shmdt**(2)](/man/shmdt/2.md).
