---
name: "lxi_disconnect"
section: "3"
platform: "linux"
package: "liblxi-dev"
version: "1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lxi_disconnect"
---

# lxi\_disconnect(3)

disconnect a LXI connection

## NAME

lxi\_disconnect - disconnect a LXI connection

## SYNOPSIS

**#include \<lxi.h\>**

**int lxi\_disconnect(int device);**

## DESCRIPTION

The **lxi\_disconnect()** function disconnects an existing LXI connection handle pointed to by  *device*

## RETURN VALUE

Upon successful completion  **lxi\_disconnect()** returns **LXI\_OK** , else **LXI\_ERROR** is returned if an error occurred.

## SEE ALSO

[**lxi\_send**(3)](/lxi_send/3.md), [**lxi\_receive**(3)](/lxi_receive/3.md), [**lxi\_disconnect**(3)](/lxi_disconnect/3.md),
