Reads a subsystem record.
System Resource Controller Library (libsrc.a)
#include <sys/srcobj.h>
#include <spc.h>
int getssys( SubsystemName, SRCSubsystem)
char * SubsystemName;
struct SRCsubsys * SRCSubsystem;
The getssys subroutine reads a subsystem record associated with the specified subsystem and returns the ODM record in the SRCsubsys structure.
The SRCsubsys structure is defined in the sys/srcobj.h file.
Item | Description |
---|---|
SRCSubsystem | Points to the SRCsubsys structure. |
SubsystemName | Specifies the name of the subsystem to be read. |
Upon successful completion, the getssys subroutine returns a value of 0. Otherwise, it returns a value of -1 and the odmerrno variable is set to indicate the error, or an SRC error code is returned.
If the getssys subroutine fails, the following is returned:
Item | Description |
---|---|
SRC_NOREC | Subsystem name does not exist. |
Item | Description |
---|---|
/etc/objrepos/SRCsubsys | SRC Subsystem Configuration object class. |