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

# ts\_fd(3)

get the file descriptor to a touchscreen device

## NAME

ts\_fd - get the file descriptor to a touchscreen device

## SYNOPSIS

```
#include <tslib.h>

int ts_fd(struct tsdev *);

```

## DESCRIPTION

**ts\_fd**() gets an open touchscreen device' file descriptor.

## RETURN VALUE

The file descriptor value is returned. **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.conf**(5)](/ts.conf/5.md)
