Index Index for
Section 9
Index Alphabetical
listing for T
Bottom of page Bottom of
page

testb(9r)

NAME

testb - General: Checks for an available buffer

SYNOPSIS

#include <sys/stream.h> int testb( int size, uint pri );

ARGUMENTS

size Specifies the size of the requested buffer. pri Specifies the priority of the allocb request.

DESCRIPTION

The testb interface determines if a call to the allocb interface is likely to succeed if a buffer of size bytes at priority pri is requested. Even if testb returns successfully, the call to allocb can fail.

RETURN VALUES

If a buffer of the requested size is available, testb returns the value 1. If a buffer of the requested size is not available, testb returns the value zero (0).

SEE ALSO

Kernel Interfaces: allocb(9r), bufcall(9r)

Index Index for
Section 9
Index Alphabetical
listing for T
Top of page Top of
page