---
name: "gensio_acc_disable"
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_shutdown"
---

# gensio\_acc\_disable(3)

Stop/free a gensio accepter that is started up

Part of [gensio\_acc\_shutdown(3)](/gensio_acc_shutdown/3.md).

## NAME

gensio\_acc\_shutdown, gensio\_acc\_shutdown\_s, gensio\_acc\_disable, gensio\_acc\_free - Stop/free a gensio accepter that is started up

## SYNOPSIS

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

- **typedef void (\*gensio\_acc\_done)(struct gensio\_accepter \*acc,**

  			void \*cb\_data);

- **int gensio\_acc\_shutdown(struct gensio\_accepter \*accepter,**

  			gensio\_acc\_done shutdown\_done,\
  \
   			void \*shutdown\_data);\

- **int gensio\_acc\_shutdown\_s(struct gensio\_accepter \*accepter);**

  - **void gensio\_acc\_disable(struct gensio\_accepter \*accepter);**

  - **void gensio\_acc\_free(struct gensio\_accepter \*accepter);**

  ## DESCRIPTION

**gensio\_acc\_shutdown** Closes all sockets and disables everything in the gensio accepter. shutdown\_done() will be called if successful after the shutdown is complete, if it is not NULL.  Returns a GE\_INUSE if the accepter is already shut down, zero otherwise.

**gensio\_acc\_shutdown\_s** shuts down the gensio and wait for the shutdown to finish.  See the notes in [gensio\_close\_s(3)](/gensio_close_s/3.md) for warning on using this.

**gensio\_acc\_disable** is like [gensio\_disable(3)](/gensio_disable/3.md), but for accepters.  See [gensio\_disable(3)](/gensio_disable/3.md) for details.

**gensio\_acc\_free** frees the network accepter.  If the network accepter is started up, this shuts it down first and shutdown\_done() is NOT called.

## RETURN VALUES

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

## SEE ALSO

[gensio\_err(3)](/gensio_err/3.md), [gensio(5)](/gensio/5.md)
