NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO
#include <mon/chMon.h>int svSiteMonConst(MonSiteConst *constants, int size);
MON
The svSiteMonConst kernel call fills the MonSiteConst structure pointed to by the constants parameter. The size parameter must be set to sizeof(MonSiteConst). It is provided for compatibility between different releases of the kernel. The members of the MonSiteConst structure are the following:
int siteName_offset ; int siteName_sizeof ; |
They specify monitoring constants related to the local site, and offsets which detail the layout of the MonSiteState structure (the MonSiteState structure gives the internal representation of the local site within the kernel data space, see svSiteProbeConnect(2MON)).
The siteName_offset member is the offset of the string representing the name of the local site. The siteName_sizeof member is the space reserved for the name.
The semantics of the members of the MonSiteConst structure is summarized by the following lines of pseudo-code:
MonSiteState* siteState ; char (siteState + siteName_offset) [siteName_sizeof] ; |
The special K_ENOTIMP value indicates that the corresponding offset or constant does not apply to this particular release of the micro-kernel.
The return value is set to the size in bytes of the MonSiteConst object.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO