# shmid\_ds - [Overview](#section1832863686165637) - [Summary](#section1525067479165637) - [Data Fields](#pub-attribs) - [Details](#section1064688726165637) - [Field](#section53433227165637) - [\_\_pad1](#a34a4da4fb1e217399487b201f8f3c621) - [\_\_pad2](#ae9dd2a694b91cf85c9989a42e7ce07cb) - [shm\_atime](#af82fd8f5fdd9d93e3985f5b888382bf8) - [shm\_cpid](#afe5c739b33bfa41eb55563571410e52c) - [shm\_ctime](#a1bee5edd96bfc138b5ca07cb558a10c5) - [shm\_dtime](#a27ee9289548d67c2036b695a25dca11b) - [shm\_lpid](#a5539fd4cdac73e375697bbd59c39c29f) - [shm\_nattch](#a68a95433988a55ce183358e4e9fe4d41) - [shm\_perm](#aa211c549a679c1b3eed093b44958a18a) - [shm\_segsz](#a0c5defd6c73b4224d9944c770bfa77b9) ## **Overview** **Related Modules:** [MEM](MEM.md) **Description:** Stores information about a shared memory segment. ## **Summary** ## Data Fields

Variable Name

Description

shm_perm

struct ipc_perm

shm_segsz

size_t

shm_atime

time_t

shm_dtime

time_t

shm_ctime

time_t

shm_cpid

pid_t

shm_lpid

pid_t

shm_nattch

unsigned long

__pad1

unsigned long

__pad2

unsigned long

## **Details** ## **Field ** ## \_\_pad1 ``` unsigned long shmid_ds::__pad1 ``` **Description:** Padding field ## \_\_pad2 ``` unsigned long shmid_ds::__pad2 ``` **Description:** Padding field ## shm\_atime ``` [time_t](UTILS.md#ga138ad62ac7715e7161bf6223e35d8323) shmid_ds::shm_atime ``` **Description:** Time when the last process is attached to this segment ## shm\_cpid ``` [pid_t](UTILS.md#ga30c34d3eead853c44f459f21b932984c) shmid_ds::shm_cpid ``` **Description:** ID of the process that created this segment ## shm\_ctime ``` [time_t](UTILS.md#ga138ad62ac7715e7161bf6223e35d8323) shmid_ds::shm_ctime ``` **Description:** Time when the last process modified this segment ## shm\_dtime ``` [time_t](UTILS.md#ga138ad62ac7715e7161bf6223e35d8323) shmid_ds::shm_dtime ``` **Description:** Time when the last process is detached from this segment ## shm\_lpid ``` [pid_t](UTILS.md#ga30c34d3eead853c44f459f21b932984c) shmid_ds::shm_lpid ``` **Description:** ID of the last process that operated this segment ## shm\_nattch ``` unsigned long shmid_ds::shm_nattch ``` **Description:** Number of processes attached to this segment ## shm\_perm ``` struct ipc_perm shmid_ds::shm_perm ``` **Description:** Operation permissions on this segment ## shm\_segsz ``` size_t shmid_ds::shm_segsz ``` **Description:** Segment size, in bytes