1rsm_memseg_import_setR_emmoodtee(3SRhSaMr)ed Memory LibrarrysmF_umnecmtsieogn_simport_set_mode(3RSM)
2
3
4

NAME

6       rsm_memseg_import_set_mode,  rsm_memseg_import_get_mode  -  set  or get
7       mode for barrier scoping
8

SYNOPSIS

10       cc [ flag... ] file... -lrsm [ library... ]
11       #include <rsmapi.h>
12
13       int rsm_memseg_import_set_mode(rsm_memseg_import_handle_t memseg,
14            rsm_barrier_mode_t mode);
15
16
17       int rsm_memseg_import_get_mode(rsm_memseg_import_handle_t memseg,
18            rsm_barrier_mode_t *mode);
19
20

DESCRIPTION

22       The   rsm_memseg_import_set_mode()  function   provides   support   for
23       optional  explicit  barrier  scoping  in the functions described on the
24       rsm_memseg_import_get(3RSM)  and   rsm_memseg_import_put(3RSM)   manual
25       pages..  The  two valid barrier modes are RSM_BARRIER_MODE_EXPLICIT and
26       RSM_BARRIER_MODE_IMPLICIT. By default,  the  barrier  mode  is  set  to
27       RSM_BARRIER_MODE_IMPLICIT.  When the mode is RSM_BARRIER_MODE_IMPLICIT,
28       an implicit barrier open and barrier close is applied to the put opera‐
29       tion.  Irrespective  of  the  mode set, the barrier must be initialized
30       using the   rsm_memseg_import_init_barrier(3RSM)  function  before  any
31       barrier operations, either implicit or explicit, are used.
32
33
34       The  rsm_memseg_import_get_mode() function obtains the current value of
35       the mode used for barrier scoping in put functions.
36

RETURN VALUES

38       Upon successful completion, these functions  return  0.  Otherwise,  an
39       error value is returned to indicate the error.
40

ERRORS

42       The rsm_memseg_import_set_mode() and rsm_memseg_import_get_mode() func‐
43       tions can return the following errors:
44
45       RSMERR_BAD_SEG_HNDL     Invalid segment handle.
46
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55ATTRIBUTE TYPE               ATTRIBUTE VALUE              
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Evolving                     │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │MT-Safe                      │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       rsm_memseg_import_get(3RSM),      rsm_memseg_import_init_barrier(3RSM),
64       rsm_memseg_import_put(3RSM), attributes(5)
65
66
67
68SunOS 5.11                        8 Jun 2001  rsm_memseg_import_set_mode(3RSM)
Impressum