GNU Info

Info Node: (ipc.info)shmdt

(ipc.info)shmdt


Next: shmctl Prev: shmat Up: Shared Memory
Enter node , (file) or (file)node

shmdt
-----

     int shmdt (char *shmaddr);

   * shmaddr : attach address of segment (returned by shmat).

   * returns : 0 on success. -1 on failure.

   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.


automatically generated by info2www version 1.2.2.9