DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dshm_detach(DSHM)


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(DSHM), dshm_attach(DSHM), dshm_bufindex(DSHM), dshm_control(DSHM), dshm_get(DSHM), dshm_map(DSHM), dshm_minmapsize(DSHM), dshm_reattach(DSHM), dshm_unmap(DSHM), dshm_updatetlb(DSHM)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005