carta
gensio_acc_set_accept_callback_enable_cb(3)

gensio_acc_set_accept_callback_enable_cb3

Enable or disable the accept ready callback

Part of gensio_acc_set_accept_callback_enable(3).

Overview

These functions enable/disable the accept callback when connections come in.

gensio_acc_set_accept_callback_enable will do an asynchronous disable. Note that this can race with pending and running callbacks, you must be prepared to handle these races.

gensio_acc_set_accept_callback_enable_cb is like the above, but do a callback when the enable is complete. Really only useful for disable, when the done callback is called then no more accepts will be called and all callbacks are done. Note that if you call this, you cannot do another enable/disable until done is called.

gensio_acc_set_accept_callback_enable_s Like above, but a synchronous call. See the notes on gensio_open_s() for the dangers of using this function.

Return values

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

History

  • Arch Linux 2026-11-01 to Debian 12 (Bookworm): the text shown here
  • Debian 11 (Bullseye)

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