ck_ring_init(3)

ck_ring_init3

Initialize bounded fifo

Usage

#include <ck_ring.h>

void

ck_ring_init(ck_ring_t *ring, unsigned int size);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_ring_init() function initializes a bounded FIFO buffer pointed to by ring for the storage of up to size number of pointers. The size argument must be a power-of-two greater than or equal to 4.

Return values

This function has no return value.

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.