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

# ts\_conf\_get(3)

get a pointer to struct ts\_module\_conf holding data from the TSLIB\_CONFFILE file.

## NAME

ts\_conf\_get - get a pointer to struct ts\_module\_conf holding data from the TSLIB\_CONFFILE file.

## SYNOPSIS

```
#include <tslib.h>

struct ts_module_conf *ts_conf_get(struct tsdev *ts);

```

## DESCRIPTION

**ts\_conf\_get**() This function returns a pointer to a struct ts\_module\_conf that is part of a list of modules listed in the TSLIB\_CONFFILE configuration file. ts\_conf\_get() actually reads TSLIB\_CONFFILE. One struct represents one line in the file. They get allocated for the user here:

```
struct ts_module_conf {
	char *name;
	char *params;
	int raw;
	int nr;
	struct ts_module_conf *next;
	struct ts_module_conf *prev;
};
```

## RETURN VALUE

This function returns a pointer to a struct ts\_module\_conf.

## SEE ALSO

[**ts\_conf\_set**(3)](/ts_conf_set/3.md), [**ts.conf**(5)](/ts.conf/5.md)
