NAME | SYNOPSIS | FEATURES | DESCRIPTION | ATTRIBUTES
#include <mon/chModules.h>
extern KernelModule KcModule [K_CMODULE_MAX];
extern KernelModule UcModule [K_CMODULE_MAX];
MON
The KcModule array contains a description of the supervisor modules and system calls available on the system. Each entry in the array is a KernelModule structure whose members are the following:
char* kmName ; int kmScCnt ; KernelCall* kmSc ; |
The kmName member specifies the name of the module. The kmScCnt member specifies the number of system calls defined by the module. The kmSc member is a pointer to an array describing the module's (supervisor) system calls. This array has kmScCnt entries; the n-th entry contains the description of the n-th system call of the module. The entries are of the type KernelCall . The KernelCall structure has the following members:
char* kcName ; int kcModule ; int kcNo ; int kcArgsCnt ; |
The kcName member specifies the name of the system call. The kcModule member specifies the module to which the system call belongs. The kcNo member specifies the system call's number. The kcArgsCnt member specifies the number of arguments used by the system call.
The <mon/chKcalls.h> header file defines a macro for each supervisor system call, enabling the system call to be mapped to the corresponding entry in the KcModule array. For example:
#define svTrapConnect_sc (&KcModule[0].kmSc[24]) |
The UcModule array contains a description of the user modules and system calls available on the system. Its layout is the same as the KcModule array.
The <mon/chUcalls.h> header file defines a macro for each user system call, enabling the system call to be mapped to the corresponding entry in the UcModule array. For example:
#define actorCreate_uc (&UcModule[0].kmSc[1]) |
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | ATTRIBUTES