[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Understanding the Diagnostic Subsystem for AIX

dlog_numMatches Subroutine

Purpose

Count the number of diagnostic event log for entries matching an input criteria.

Syntax

#include <diag/diag_log.h>
int dlog_numMatches(query_log *criteria) 

Description

The dlog_numMatches subroutine counts the number of diagnostic event log entries matching an input criteria.

Parameters

criteria Criteria used to search the diagnostic even t log. Unused fields must be set to 0.
matches Count of the number of entries matching the input criteria.

Return Value

The dlog_numMatches subroutine returns one of the following values:

0 If successful
-1 The diagnostic event log could not be opened
-2 An error occurs reading from the diagnostic event log
-3 The search criteria is invalid
-4 Memory could not be allocated
-5 An error occurred due to too many matches.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]