1iscsi_nodes_get(3) API Manual iscsi_nodes_get(3)
2
3
4
6 iscsi_nodes_get - Retrieve all iSCSI nodes.
7
9 int iscsi_nodes_get (struct iscsi_context *ctx, struct iscsi_node
10 ***nodes, uint32_t *node_count);
11
13 ctx Pointer of 'struct iscsi_context'. If this pointer is
14 NULL, your program will be terminated by assert.
15
16 nodes Output pointer of 'struct iscsi_node' pointer array. Its
17 memory should be freed by iscsi_nodes_free. If this
18 pointer is NULL, your program will be terminated by assert.
19
20 node_count Output pointer of uint32_t. Will store the size of
21
23 Retrieves all iSCSI nodes. For the properties of 'struct iscsi_node',
24 please refer to the functions defined in 'libopeniscsiusr_node.h' file.
25 The returned results contains iSCSI nodes configured in
26 "/etc/iscsi/nodes/". Illegal configuration file will be skipped and
27 warned. The returned 'struct iscsi_node' pointer array is sorted by
28 target name, connection address, connection port and interface.
29
31 int. Valid error codes are:
32
33 * LIBISCSI_OK
34
35 * LIBISCSI_ERR_BUG
36
37 * LIBISCSI_ERR_NOMEM
38
39 * LIBISCSI_ERR_ACCESS
40
41 * LIBISCSI_ERR_SYSFS_LOOKUP
42
43 * LIBISCSI_ERR_IDBM
44
45 Error number could be converted to string by iscsi_strerror.
46
47
48
49July 2023 iscsi_nodes_get iscsi_nodes_get(3)