NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO
#include <mon/chMon.h>int svPortMonConst(MonPortConst *constants, int size);
MON
The svPortMonConst kernel call fills the MonPortConst structure pointed to by the constants parameter. The size parameter must be set to sizeof(MonPortConst). It is provided for compatibility between different releases of the kernel. The members of the MonPortConst structure are the following:
int prtName_offset ; int prtName_sizeof ; int prtLid_offset ; |
They specify monitoring constants related to ports, and important offsets which detail the layout of the MonPortState structure (the MonPortState structure gives the internal representation of a port within the kernel data space, see svPortProbeConnect(2MON)).
The prtName_offset member is the offset of the string representing the name of the port. The prtName_sizeof member is the space reserved for the name. The prtLid_offset member is the offset of the local identifier of the port.
The semantics of the members of the MonPortConst structure is summarized by the following lines of pseudo-code:
MonPortState* portState ; char (portState + prtName_offset) [prtName_sizeof] ; int* (portState + prtLid_offset) ; |
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 MonPortConst 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