1rsm_memseg_import_iniRte_mboatreriSehra(r3eRdSMM)emory Lirbsrma_rmyemFsuengc_tiimopnosrt_init_barrier(3RSM)
2
3
4

NAME

6       rsm_memseg_import_init_barrier,   rsm_memseg_import_destroy_barrier   -
7       create or destroy barrier for imported segment
8

SYNOPSIS

10       cc [ flag... ] file... -lrsm [ library... ]
11       #include <rsmapi.h>
12
13       int rsm_memseg_import_init_barrier(
14            rsm_memseg_import_handle_t memseg, rsm_barrier_type_t type,
15            rsmapi_barrier_t *barrier);
16
17
18       int rsm_memseg_import_destroy_barrier(rsmapi_barrier_t *barrier);
19
20

DESCRIPTION

22       The rsm_memseg_import_init_barrier() function creates a barrier for the
23       imported  segment specified by memseg. The barrier type is specified by
24       the type argument. Currently, only RSM_BAR_DEFAULT is  supported  as  a
25       barrier  type.  A handle to the barrier is obtained through the barrier
26       argument and is used in subsequent barrier calls.
27
28
29       The rsm_memseg_import_destroy_barrier() function  deallocates  all  the
30       resources associated with the barrier.
31

RETURN VALUES

33       Upon  successful  completion,  these  functions return 0. Otherwise, an
34       error value is returned to indicate the error.
35

ERRORS

37       The rsm_memseg_import_init_barrier() and rsm_memseg_import_destroy_bar‐
38       rier() functions can return the following errors:
39
40       RSMERR_BAD_SEG_HNDL        Invalid segment handle.
41
42
43       RSMERR_BAD_BARRIER_PTR     Invalid barrier pointer.
44
45
46
47       The  rsm_memseg_import_init_barrier() function can return the following
48       errors:
49
50       RSMERR_INSUFFICIENT_MEM     Insufficient memory.
51
52

ATTRIBUTES

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

SEE ALSO

68       rsm_memseg_import_open_barrier(3RSM), rsm_memseg_import_set_mode(3RSM),
69       attributes(5)
70
71
72
73SunOS 5.11                        8 Jun 200r1sm_memseg_import_init_barrier(3RSM)
Impressum