qb_rb_chunk_write(3)

qb_rb_chunk_write3

Write a chunk to the ring buffer.

Usage

#include <qb/qbrb.h>

ssize_t qb_rb_chunk_write(
    qb_ringbuffer_t   *rb,    /* ringbuffer instance */
    const void        *data,  /* (in) the data to write */
    size_t             len    /* (in) the size of the chunk. */
);

Params

rb ringbuffer instance

data (in) the data to write

len (in) the size of the chunk.

Overview

This simply calls qb_rb_chunk_alloc() and then qb_rb_chunk_commit().

Return value

the amount of bytes actually buffered (either len or -1).

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.