Next: shmctl, Previous: shmat, Up: Shared Memory
int shmdt (char *shmaddr);
An attached segment is detached and shm_nattch
decremented. The
occupied region in user space is unmapped. The segment is destroyed
if it is marked for destruction and shm_nattch
is 0.
shm_lpid
and shm_dtime
are updated.
Errors:
EINVAL : No shared memory segment attached at shmaddr.