Solaris Bandwidth Manager 1.6 Developer Guide

ba_enable_signal()

Name

ba_enable_signal() -- enables the signalling mechanism

Synopsis

#include <netinet/ba_stat.h>

	int ba_enable_signal (
		int signo
);

Description

The function ba_enable_signal() enables the signalling mechanism that is used by the ipqos module to send signals directly to the user process.


Note -

When using the signal(3C) library calls, some signals may be lost if two signals are sent at the same time. In your signal handler, always check that all pending events have been processed before returning.


Arguments

The function ba_enable_signal() is passed the following argument:

signo

Integer signal value. See signal(5) for a list of the current valid values for signo.

Returns

The function ba_enable_signal() returns 0 on success, and -1 on error.

Errors

If an error occurs during a call to ba_enable_signal(), the variable ba_errno is set to one of the error codes listed in Table 4-2.