gensio_alloc_channel(3)

gensio_alloc_channel3

Create a new channel on a channel-capable gensio

Usage

#include <gensio/gensio.h>

int gensio_alloc_channel(struct gensio *io, const char * const args[],

gensio_event cb, void *user_data,
struct gensio **new_io);

Overview

gensio_alloc_channel creates a new channel on a channel-capable gensio. The exact meaning of channel, and the meaning of args depends on the particular gensio, see the the particular gensio class in gensio(5). The new gensio created will be closed and you must call gensio_open on it to start it up.

Return values

Zero is returned on success, or a gensio error on failure.

Releases

Unchanged in 4 releases since Debian 11 (Bullseye).

  1. 11–Arch

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