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

# ts\_config(3)

read tslib's configuration

## NAME

ts\_config, ts\_reconfig - read tslib's configuration

## SYNOPSIS

```
#include <tslib.h>

int ts_config(struct tsdev *dev);

int ts_reconfig(struct tsdev *dev);

```

## DESCRIPTION

**ts\_config**() loads and initialises all modules configured in the tslib configuration file **TSLIB\_CONFFILE** , see ts.conf (5). **ts\_reconfig**() re-runs ts\_config and updates the configuration if the configuration file has changed.

## RETURN VALUE

Zero is returned on success. A negative value is returned in case of an error.

## SEE ALSO

[**ts\_read**(3)](/ts_read/3.md), [**ts\_open**(3)](/ts_open/3.md), [**ts\_setup**(3)](/ts_setup/3.md), [**ts\_close**(3)](/ts_close/3.md), [**ts.conf**(5)](/ts.conf/5.md)
