trc_ishookon Subroutine

Purpose

Check if a given trace hook word is being traced by system trace.

Library

Runtime Services Library (librts.a)

Syntax

#include <sys/trcmacros.h>

int trc_ishookon(int chan, long hkwd)

Description

The trc_ishookon subroutine returns 1 if tracing for the specified channel is on and the specified hook word is being traced, otherwise it returns 0.

Parameters

Item Description
chan The channel to query ranging from channel number 0 though 7.
hkwd The hook word to be traced by system trace.

Return Values

Item Description
1 The specified hook word is being traced.
0 Hook word is not being traced or system trace is off.

Files

/dev/systrct1[-{0-7}]