get the status of the node with the given ID
#include <sys/osstat.h> int qnx_osstat( nid_t nid, struct _osstat *osdata );
The qnx_osstat() function returns status information of the node indicated by nid. This information can be used to determine how busy a node is at each priority level.
The _osstat structure contains at the least the following members:
The period over which the cpu_load is averaged is set by the sac utility. The numbers are relative to each other (see the example).
Any errno value that can be set by qnx_vc_attach() may be set, as well as the following:
See /usr/free/qnx4/os/utils/misc/os_info.tgz.
This file is provided as a sample implementation for reference purposes only. |
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
errno, qnx_osinfo(), qnx_psinfo()