---
name: "gensio_acc_get_type"
section: "3"
platform: "linux"
package: "gensio"
version: "3.0.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gensio_acc_get_type"
---

# gensio\_acc\_get\_type(3)

Return general information about a gensio accepter

## NAME

gensio\_acc\_get\_type, gensio\_acc\_is\_reliable, gensio\_acc\_is\_packet, gensio\_acc\_is\_message, gensio\_acc\_is\_mux - Return general information about a gensio accepter

## SYNOPSIS

**#include \<gensio/gensio.h\>**

- **const char \*gensio\_acc\_get\_type(struct gensio \*io,**

  **unsigned int depth);**

- **bool gensio\_acc\_is\_reliable(struct gensio \*io);**

  - **bool gensio\_acc\_is\_packet(struct gensio \*io);**

  - **bool gensio\_acc\_is\_mux(struct gensio \*io);**

  ## DESCRIPTION

**gensio\_acc\_get\_type** return the type string for the gensio accepter (if *depth* is 0) or one of its children *(depth \> 0).* Returns NULL if the depth is greater than the number of children.

**gensio\_acc\_is\_reliable** return true if the genios produce by this accepter are reliable.  See [gensio\_is\_reliable(3)](/gensio_is_reliable/3.md) for details.

**gensio\_acc\_is\_packet** returns if the genios produce by this accepter are packet-oriented.  See [gensio\_is\_packet(3)](/gensio_is_packet/3.md) for details.

**gensio\_acc\_is\_message** returns if the genios produce by this accepter are message-oriented.  See [gensio\_is\_message(3)](/gensio_is_message/3.md) for details.

**gensio\_acc\_is\_mux** returns if the genios produced by this accepter are capable of multiplexing.  See [gensio\_is\_mux(3)](/gensio_is_mux/3.md) for details.

## SEE ALSO

[gensio\_err(3)](/gensio_err/3.md), [gensio(5)](/gensio/5.md), [gensio\_get\_type(3)](/gensio_get_type/3.md), [gensio\_is\_reliable(3)](/gensio_is_reliable/3.md), [gensio\_is\_packet(3)](/gensio_is_packet/3.md), [gensio\_is\_message(3)](/gensio_is_message/3.md)
