Purpose
Controls
component RAS characteristics.
Syntax
#include <sys/ras.h>
kerrno_t ras_path_control (
char * path,
ras_cmd_t command,
void * arg,
long argsize);
Description
The
ras_path_control kernel
service passes a command to the RAS component specified by the
path parameter.
Note: During
the ras_path_control process, callbacks to the registrant of
the component might be initiated for changes that the RAS infrastructure
makes to the component. The registrant should be aware of this for
locking purposes (for instance, the registrant should not be holding
any locks the callback needs).
Parameters
Item |
Description |
path |
The pathname of the component to receive the command parameter. |
command |
Command passed to the callback. Commands are
specific to a given RAS domain, such as Component Trace. |
arg |
Optional argument for the command. |
argsize |
Size of the argument, if a buffer or structure. |
Execution Environment
The
calling environment of the ras_path_control kernel service
varies by individual command. The calling environment of a particular
command is documented with the command itself.
Return Values
Item |
Description |
0 |
Successful. |
non-zero |
Unsuccessful. |