|
|
| Using the WebQoS API | |
|
|
| wq_set_proc_cls() | |
| class Values |
|
|
|
| wq_set_proc_cls() can pass the following values: | |||
Table | 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 | |||
| 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 | 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 |