stmfGetViewLuNumberList - retrieve the list of logical-unit-numbers
cc [ flag... ] file... –lstmf [ library... ] #include <libstmf.h> int stmfGetViewLuNumberList(viewResource resource, stmfLuNbrEntryList **luNbrList);
A view resource previously allocated using stmfGetViewResourceList(3STMF) call.
A pointer to a pointer to structure stmfLuNbrEntryList. On successful return, this will contain information of list of mapped logical-unit-numbers and the corresponding initiator for the given logical unit.
The stmfGetViewLuNumberList() function retrieves the list of logical-unit-numbers mapped at that time for a specified logical unit for all initiators associated with the host group in a view entry. A view entry can be added to a logical unit either by requesting a system assigned automatic logical-unit-number or by specifying a fixed logical-unit-number. If a logical-unit-number was specified while adding the view entry, all the mapped logical-unit-numbers will be same for all initiators associated to the host group in the view entry throughout the existence of that view. If an assigned automatic logical-unit-number was requested, the system may remap the number for any initiator associated to the view to avoid any possible conflict, in which case logical-unit-numbers may vary across the initiators associated with the host group of the view.
The caller should call stmfFreeMemory(3STMF) when luNbrList data is no longer needed.
The following values are returned:
The API call was successful.
Invalid arguments passed
See attributes(7) for descriptions of the following attributes: