dshm_minmapsize(3dshm)
dshm_minmapsize --
compute DSHM minimum map size
Synopsis
#include <dshm.h>
size_t
dshm_minmapsize (size_t
buffer_size, unsigned long max_mappings);
Description
dshm_minmapsize returns the minimum map size required to support
a given number of concurrent mappings of a given buffer size
on the current machine.
Return values
dshm_minmapsize returns the minimum map size, in bytes
If dshm_minmapsize returns size_t
-1, an error occurred.
errno is set to identify the error.
Errors
In the following conditions, dshm_minmapsize fails and sets
errno to:
EINVAL-
buffer_size is not a power of 2.
EINVAL-
buffer_size is greater than DSHM_MAX_BUFFER_SIZE.
ENOSYS-
DSHM is not supported.
EOVERFLOW-
The required map size cannot fit in a
size_t
References
dshm_alignment(3dshm),
dshm_attach(3dshm),
dshm_bufindex(3dshm),
dshm_control(3dshm),
dshm_detach(3dshm),
dshm_get(3dshm),
dshm_map(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