stmfGetTargetList - retrieve the list of target ports
cc [ flag... ] file... –lstmf [ library... ] #include <libstmf.h> int stmfGetTargetList(stmfDevidList **targetList);
A pointer to a pointer to an stmfDevidList structure. On successful return, this will contain a list of target ports in the system.
The stmfGetTargetList() function retrieves the list of target ports. The caller should call stmfFreeMemory(3STMF) when this list is no longer needed.
The following values are returned:
The library was unable to allocate sufficient memory for targetList.
The API call was successful.
See attributes(7) for descriptions of the following attributes: