TS_CONF_GET(3)
π TS_CONF_GET(3) β the tslib page that hands you your config modules π
okay bestie, sit down, hydrate, because this is the page that gives you a pointer to the struct holding all the good stuff from your TSLIB_CONFFILE file. it's from tslib, it's manual page 3, and it's lowkey the gateway drug to every module config you'll ever touch. β¨
πΈ 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 π¦
so ts_conf_get() literally hands you back a pointer to a struct ts_module_conf, and that struct is one member of a whole list of modules β the ones listed in the TSLIB_CONFFILE configuration file. π
and the tea? ts_conf_get() actually reads TSLIB_CONFFILE. like, for real for real. one struct = one line in that file. and they get allocated for you right here, no cap:
struct ts_module_conf {
char *name;
char *params;
int raw;
int nr;
struct ts_module_conf *next;
struct ts_module_conf *prev;
};
every field is doing its little main character thing: name, params, raw, nr, and the linked-list besties next and prev. iconic. π
β¨ RETURN VALUE β¨
this function returns a pointer to a struct ts_module_conf. that's it, that's the whole vibe check. π«Ά
π SEE ALSO π
heads up bestie: this is the<tslib.h>include, so keep that#includeexactly as it is, and the struct fields exactly as they are. copy-paste energy only for the code. π
and that's the page, fr fr. it lives in tslib, it's stamped as the TS_CONF_GET(3) page β the source and version tag at the bottom are the whole receipt, date included as printed. slay, go read your config. ππβ¨
π¦ where this page comes from
- alpine 3.24: tslib-doc 1.24-r0 Β· LGPL-2.0-or-later
- arch rolling: tslib 1.24-1 Β· LGPL-2.1-only
- debian bookworm: libts0 1.22-1+b1 Β· LGPL-2.0-or-later
- debian trixie: libts0t64 1.22-1.1+b1 Β· LGPL-2.0-or-later
- epel 10: tslib 1.23-2.el10_2 Β· LGPL-2.1-only
- epel 9: tslib 1.22-5.el9 Β· LGPLv2
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- nixos 26.05: tslib 1.24
- nixpkgs unstable: tslib 1.24
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- ubuntu jammy: libts0 1.22-1 Β· LGPL-2.0-or-later
- ubuntu noble: libts0t64 1.22-1.1build1 Β· LGPL-2.0-or-later
- ubuntu questing: libts0t64 1.22-1.1build1
- ubuntu resolute: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- ubuntu stonking: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- Copyright (c) 2018, Martin Kepplinger <martink@posteo.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms