Modifies the subsystem objects associated with the SubsystemName parameter.
System Resource Controller Library (libsrc.a)
#include <sys/srcobj.h> #include <spc.h>
int chssys( SubsystemName, SRCSubsystem)
char *SubsystemName;
struct SRCsubsys *SRCSubsystem;
The chssys subroutine modifies the subsystem objects associated with the specified subsystem with the values in the SRCsubsys structure. This action modifies the objects associated with subsystem in the following object classes:
The Subserver Type and Notify object classes are updated only if the subsystem name has been changed.
The SRCsubsys structure is defined in the /usr/include/sys/srcobj.h file.
The program running with this subroutine must be running with the group system.
SRCSubsystem | Points to the SRCsubsys structure. |
SubsystemName | Specifies the name of the subsystem. |
Upon successful completion, the chssys subroutine returns a value of 0. Otherwise, it returns a value of -1 and the odmerrno variable is set to indicate the error, or a System Resource Controller (SRC) error code is returned.
The chssys subroutine is unsuccessful if one or more of the following are true:
Privilege Control: This command has the Trusted Path attribute. It has the following kernel privilege:
SET_PROC_AUDIT kernel privilege
Files Accessed: |
Mode | File |
---|---|
644 | /etc/objrepos/SRCsubsys |
644 | /etc/objrepos/SRCsubsvr |
644 | /etc/objrepos/SRCnotify |
Auditing Events: | |
Event | Information |
SRC_Chssys |
The addssys (addssys Subroutine) subroutine, delssys (delssys Subroutine) subroutine.
The chssys command, mkssys command, rmssys command.
System Resource Controller Overview in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.
Defining Your Subsystem to the SRC, List of SRC Subroutines, System Resource Controller (SRC) Overview for Programmers in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.