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

# ts\_open(3)

open a touch screen input device

## NAME

ts\_open - open a touch screen input device

## SYNOPSIS

```
#include <tslib.h>

struct tsdev *ts_open(const char *dev_name, int nonblock);

```

## DESCRIPTION

**ts\_open**() allocates memory for a new touch screen device, opens and links the given input event device to it.

## RETURN VALUE

A pointer to the opened **struct tsdev** is returned.

## SEE ALSO

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