1stmfGetPersistMethSoCdS(I3STTaMrFg)et Mode Framework LibrarysFtumnfcGteitoPnesrsistMethod(3STMF)
2
3
4
6 stmfGetPersistMethod - get the current persistence method for stmf
7
9 cc [ flag... ] file... -lstmf [ library... ]
10 #include <libstmf.h>
11
12 int stmfGetPersistMethod(uint8_t *persistType, boolean_t serviceState);
13
14
16 persistType On success, contains the current persistence setting
17 based on serviceState.
18
19
20 serviceState When set to B_TRUE, persistType will contain the per‐
21 sist method currently set for the service. When set to
22 B_FALSE, persistType will contain the persist method
23 for the current library open.
24
25
27 The stmfGetPersistMethod() function retrieves the current persistent
28 method setting for the service or for a given library open. When set to
29 B_TRUE, retrieves the setting from the service.
30
32 The following values are returned:
33
34 STMF_STATUS_SUCCESS The API call was successful.
35
36
37 STMF_ERROR_PERSIST_TYPE Unable to retrieve persist type from ser‐
38 vice.
39
40
42 See attributes(5) for descriptions of the following attributes:
43
44
45
46
47 ┌─────────────────────────────┬─────────────────────────────┐
48 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │Interface Stability │Committed │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │MT-Level │Safe │
53 └─────────────────────────────┴─────────────────────────────┘
54
56 libstmf(3LIB), attributes(5)
57
58
59
60SunOS 5.11 8 May 2009 stmfGetPersistMethod(3STMF)