DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dshm_detach(3dshm)


dshm_detach -- detach DSHM segment

Synopsis

   #include <dshm.h>
   

int dshm_detach(dshm_handle_t handle);

Description

dshm_detach disconnects the specified segment from the caller's address space.

Return values

If dshm_detach returns 0, the operation succeeded.

If dshm_detach returns -1, an error occurred. errno is set to identify the error.

Errors

In the following conditions, dshm_detach fails and sets errno to:


EINVAL
dshmaddr is not the data segment start address of a dynamically mapped shared memory segment.

References

dshm_alignment(3dshm), dshm_attach(3dshm), dshm_bufindex(3dshm), dshm_control(3dshm), dshm_get(3dshm), dshm_map(3dshm), dshm_minmapsize(3dshm), dshm_reattach(3dshm), dshm_unmap(3dshm), dshm_updatetlb(3dshm)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004