Using the WebQoS API

 

 

 

wq_set_proc_cls()

 

class Values

 

 

 

 

wq_set_proc_cls() can pass the following values:

Table 2-7

wq_set_proc_cls() class Values

 

 

 

 

 

 

Process Group

 

class Value

 

 

 

 

 

 

 

Low

 

WQ_SVCCLS_LOW

 

 

 

 

 

 

 

Medium

 

WQ_SVCCLS_MED

 

 

 

 

 

 

 

High

 

WQ_SVCCLS_HIGH

 

 

 

 

 

 

 

Other

 

WQ_SVCCLS_OTHER

 

 

 

 

 

 

 

PRM_SYS class; accessible by root only

WQ_SVCCLS_ROOT

 

 

 

 

 

 

 

Return Value

 

 

 

 

wq_set_proc_cls() returns 0 if it is successful or -1 if an error

 

occurred.

 

 

 

 

Errors

 

 

 

 

If error logging to syslog is enabled, certain errors are logged to a file (you

 

can specify the file in /etc/syslog.conf). Refer to the syslog(3C) and

 

syslogd(1M) man pages for information about enabling logging.

 

When an error occurs, errorcode is set to one of the following:

Table 2-8

wq_set_proc_cls() Error Codes

 

 

 

 

Error Code

Description

 

 

 

 

WQERR_BADSCOPE

The value provided for scope is not defined.

 

 

Currently, WQ_SCOPE_PROCESS is the only

 

 

defined value.

 

 

 

 

WQERR_BADSVCCLASS

The value provided for class is not a defined

 

 

process group.

 

 

 

 

WQERR_CONNECT

Problems connecting to the SCA process. If error

 

 

logging to syslog is enabled, the errors are logged

 

 

to a file.

 

 

 

 

 

Chapter 2

23

Page 23
Image 23
HP WebQoS Software manual Class Values, Process Group