1stmfOfflineTarget(S3CSSTIMFT)arget Mode Framework Library FunscttmifoOnfsflineTarget(3STMF)
2
3
4

NAME

6       stmfOfflineTarget - take offline a target port that is currently in the
7       online state
8

SYNOPSIS

10       cc [ flag... ] file... -lstmf [ library... ]
11       #include <libstmf.h>
12
13       int stmfOfflineTarget(stmfDevid *target);
14
15

PARAMETERS

17       target    The identifier of the target port to offline.
18
19

DESCRIPTION

21       The stmfOfflineTarget() function takes offline a target  port  that  is
22       currently  in  the  online state. Once in the offline state, the target
23       port will no longer be capable of servicing requests in the system.
24
25
26       This API call can be used to take offline a target port device for ser‐
27       vicing. Once the target port is offline, it will no longer be available
28       to any entities outside of the SCSI Target Mode Framework. Any  initia‐
29       tor ports that currently have sessions established by the offlined tar‐
30       get port will be logged out.
31

RETURN VALUES

33       The following values are returned:
34
35       STMF_ERROR_BUSY        The device is currently busy.
36
37
38       STMF_STATUS_SUCCESS    The API call was successful.
39
40

ATTRIBUTES

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

SEE ALSO

56       libstmf(3LIB), attributes(5)
57
58
59
60SunOS 5.11                        9 Jun 2008          stmfOfflineTarget(3STMF)
Impressum