HP WebQoS Software manual Wqsetproccls

Page 22

Using the WebQoS API

wq_set_proc_cls()

wq_set_proc_cls()

Sets the process group of the current process. For a multithreaded process, all threads are set to the same specified process group.

A process is only allowed to change its process group to the value(s) specified in the file /etc/opt/webqos/svccls.allow. By default, a process cannot change its process group. Refer to the svccls.allow file for an explanation of how to configure this file. A copy of this file can be found in Appendix A , “Sample Programs, Configuration, and Header Files,” on page 33.

Synopsis

#include <webqosapi.h>

int wq_set_proc_cls(uint32_t class, uint32_t scope, int *errorcode)

Link using -lqosapi_pr -L/opt/prm/lib -lprmext

Arguments

class

The process group to which the application sets the

 

process to be in. Refer to “class Values” for a list of

 

process group values.

scope

Specifies scope of the function, which can be the entire

 

process or a thread. Currently, only the entire process

 

can be set (using WQ_SCOPE_PROCESS). For more

 

information about multithreaded applications, refer to

 

“Multithreaded Applications” in this section.

errorcode

The error code set when the return value is -1. Refer to

 

“Errors” in this section for a list of error codes.

22

Chapter 2

Image 22
Contents HP WebQoS on HP-UX API Programmer’s Guide Legal Notices Page Page Contents Troubleshooting Printing History Page About the WebQoS API Example Subsequent Service Requests Example Initial Service RequestOverview Example Setting the Process Group WebQoSOverview Using the WebQoS API Using the WebQoS API Wqgetsessioncls Error Code Description Return ValueWqsetsessioncls Cls Values Class of Request Cls Value Classification RuleExample Condition or Process Group Return ValueMultithreaded Applications Wqsetproccls Class Values Process GroupUsing the WebQoS API wqsetproccls Troubleshooting Checklist Select the Classification Rules tabRequest Classification Rule Class Error Codes Request Classification Rule Class Error Codes Process Group Error Codes Process Group Error Codes Error Code Wqerrother Error Code WqerrpermissionProcess Group Error Codes Sample Programs, Configuration, and Header Files Sample Session Class Program Sample Process Group Program Sample Process Group Program Svccls.allow Configuration File Webqosapi.h Header File Webqosapi.h Header File Webqosapi.h Header File Index Index Index
Related manuals
Manual 182 pages 33.13 Kb Manual 150 pages 36.15 Kb