shmctl.2: Copy information on 'shmid_ds' fields from sysvipc(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-02-25 15:14:58 +01:00
parent 5c6233fd47
commit c41cf60e5c
1 changed files with 41 additions and 0 deletions

View File

@ -82,6 +82,47 @@ struct shmid_ds {
.EE
.in
.PP
The fields of the
.I shmid_ds
structure are as follows:
.TP 12
.I shm_perm
.I ipc_perm
structure that specifies the access permissions on the shared memory
segment.
.TP
.I shm_segsz
Size in bytes of the shared memory segment.
.TP
.I shm_cpid
ID of the process that created the shared memory segment.
.TP
.I shm_lpid
ID of the last process that executed a
.BR shmat (2)
or
.BR shmdt (2)
system call.
.TP
.I shm_nattch
Number of current alive attaches for this shared memory segment.
.TP
.I shm_atime
Time of the last
.BR shmat (2)
system call.
.TP
.I shm_dtime
Time of the last
.BR shmdt (2)
system call.
.TP
.I shm_ctime
Time of the last
.BR shmctl (2)
system call that changed
.IR shmid_ds .
.PP
The
.I ipc_perm
structure is defined as follows