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.
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:
SRC_NOREC | Subsystem name does not exist. |
This subroutine is part of Base Operating System (BOS) Runtime.
/etc/objrepos/SRCsubsys | SRC Subsystem Configuration object class. |
The addssys (addssys Subroutine) subroutine, delssys (delssys Subroutine) subroutine, getsubsvr (getsubsvr Subroutine) subroutine.
Defining Your Subsystem to the SRC, List of SRC Subroutines, System Resource Controller (SRC) Overview for Programmers in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.