MonGetGenStats

Retrieves and potentially resets general statistical information from the monitor task.

Prototype

MON_STATUS MonGetGenStats ( U8 board, MonGenStats *pStats, Bool bReset )

Argument

Description

board

TX board number on which the desired monitor task resides.

pStats

Pointer to a MonGenStats structure where the data link configuration values are filled:

typedef struct _MonGenStats
{
    S16   action;         /* Action to take (ZEROSTS or NOZEROSTS) */
    S16   spare1;         /* Alignment */
    U32   numAppCongDrop; /* Number of messages dropped due to congestion
                           * (limited pool up to host is full) */
} MonGenStats;

bReset

Flag that indicates whether or not to set statistics to zero after retrieval.


Return values

Return value

Description

MON_BOARD

Board number out of range.

MON_DRIVER

CPI driver returned an error.

MON_HANDLE

Board not previously initialized.

MON_LINKTYPE

Invalid link or switch type.

MON_PARAM

Invalid parameter.

MON_RESPONSE

Wrong response from board.

MON_SUCCESS

 

MON_TIMEOUT

No response from board.