qb_rb_open(3)

qb_rb_open3

Create the ring buffer with the given type.

Usage

#include <qb/qbrb.h>

qb_ringbuffer_t * qb_rb_open(
    const char   *name,                   /* the unique name of this ringbuffer. */
    size_t        size,                   /* the requested size. */
    uint32_t      flags,                  /* or'ed flags */
    size_t        shared_user_data_size   /* size for a shared data area. */
);

Params

name the unique name of this ringbuffer.

size the requested size.

flags or'ed flags

shared_user_data_size size for a shared data area.

Overview

This creates allocates a ring buffer in shared memory.

Return value

a new ring buffer or NULL if there was a problem.

Note

the actual size will be rounded up to the next page size.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From libqb 2.0.10-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.