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

Understanding the Diagnostic Subsystem for AIX

dlog_query Subroutine

Purpose

Query the diagnostic event log for entries matching an input criteria.

Syntax

#include <diag/diag_log.h>
int dlog_query(query_log *criteria, query_results *results) 

Description

The dlog_query subroutine queries the diagnostic event log for entries matching an input criteria.

Parameters

criteria Criteria used to search the diagnostic event log. Unused fields must be set to 0.
results Structure containing a pointer to a list of entries matching the input criteria.Entries are returned sorted by diagnostic event log sequence number (highest first).

Return Value

The dlog_query 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

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