ZCOM C I/F Library Routines

ZSETQL (3X)

 

ZSETQL (3X)

NAME

zsetql – Set buffer queue limit

SYNOPSIS

#include

<zcom/zcomsys.h>

#include

<zcom/zcomcall.h> /* if compiled with ANSI C (recommended) */

int32 zsetql (zap, mode, qnum, limit)

zaddr_type *zap;

uint32mode;

uint32qnum;

uint32limit;

DESCRIPTION

Routine zsetql changes the pre-set queue limit of a buffer queue (the

 

pre-set value is configured in the TTGEN configuration file). This allows

 

the caller to adjust the input/output characteristics of some of the ZLUs

 

in the ZCOM subsystem without restarting the ZCOM subsystem or

 

affecting other ZLUs.

 

 

The libraries libzcom_c.a and libpthread.a must be linked into the calling

 

program by giving the options “-lzcom_c -lpthread” to cc(1) or ld(1).

Threads

This routine may be called from a multi-threaded application using the

Considerations

POSIX (1003.1c) kernel threads API package. This routine has the

 

following characteristics when called by a multi-threaded application:

 

cancellation point

Thread cancellation can occur when a thread

 

 

calls this routine.

 

async-cancel unsafe

The calling thread’s cancelability type must be

 

 

PTHREAD_CANCEL_DEFERRED if

 

 

cancellation is enabled.

 

async-signal unsafe

It cannot be called from a signal handler.

 

fork unsafe

It cannot be called by a child process after

 

 

fork(2) but before exec(2).

316

Chapter 4