cb_pages_reservable_at_back

bool cb_pages_reservable_at_back(int32_t operand, int32_t num_pages)

A non-blocking call that checks if the specified number of pages are available for reservation at the back of the circular buffer. This call is used by the producer to see if the consumer has freed up the desired space (in pages).

CB total size must be an even multiple of the argument passed to this call.

Return value: true if the specified number of pages are available

Argument

Description

Type

Valid Range

Required

cb_id

The index of the circular buffer (CB)

uint32_t

0 to 31

True

num_tiles

The number of free tiles to wait for

uint32_t

It must be less or equal than the size of the CB (the total number of tiles that fit into the CB)

True