COMEDI_GET_ROUTES(3)
π COMEDI_GET_ROUTES π
okay so this is the comedi_get_routes(3) page from the Comedi reference, and bestie, it's literally about getting a list of every possible device-globally named route for your device β¨
πΈ NAME πΈ
comedi_get_routes β obtain list of all possible device-globally named routes π«Ά
β¨ SYNOPSIS β¨
#include <comedilib.h>
int comedi_get_routes(comedi_t * device, comedi_route_pair * routelist,
size_t n);
π STATUS π
alpha β yes queen, it's early days, she's still cooking π
π¦ DESCRIPTION π¦
So this function obtains a list of all the possible globally-named routes for the particular device. All of them. The whole roster π
A globally-named route is a route where the source and destination values are globally recognized, regardless of the subdevice. Like, the names hit device-wide, no cap. This function returns every possible signal route that's either connectible via comedi_cmd->start_arg aruments or via the device-global configuration interface of comedi_connect_route and comedi_disconnect_route π₯
The routelist parameter provides memory into which the results may be copied. The comedi_route_pair is (as specified in comedi.h):
typedef struct {
unsigned int source;
unsigned int destination;
} comedi_route_pair;
routelist may be specified as NULL, in which case only the number of routes will be returned. so like, a little vibe check first β "how many we talking?" β no memory needed π
The n parameter provides specifies the number of slots available in the routelist array πΈ
π§ RETURN VALUE π§
- The number of routes available if routelist is
NULLπ - the number of routes copied if routelist is not
NULL⨠- or
-1on error π
π AUTHORS π
- David Schleef
<ds@schleef.org>β Author. - Frank Mori Hess
<fmhess@users.sourceforge.net>β Author. - Herman Bruyninckx
<Herman.Bruyninckx@mech.kuleuven.ac.be>β Author. - Bernd Porr
<tech@linux-usb-daq.co.uk>β Author. - Ian Abbott
<abbotti@mev.co.uk>β Author. - Γric Piel
<piel@delmic.com>β Author. - Spencer Olson
<olsonse@umich.edu>β Author.
iconic lineup fr fr π«Ά
π COPYRIGHT π
Copyright Β© 1998-2003 David Schleef
Copyright Β© 2001-2003, 2005, 2008 Frank Mori Hess
Copyright Β© 2002-2003 Herman Bruyninckx
Copyright Β© 2012 Bernd Porr
Copyright Β© 2012 Ian Abbott
Copyright Β© 2012, 2015 Γric Piel
Copyright Β© 2016-2018 Spencer Olson
This document is part of Comedilib. In the context of this document, the term "source code" as defined by the license is interpreted as the XML source.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1 of the License.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
real talk: that warranty line is not a vibe, it's a whole warning β no promises, bestie π
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
so that's the whole page, mwah π this one's from the Comedi reference, dated 01/01/1980 (yes, the fossil era, she's vintage and we stan), comedi version stamped right there at the bottom. go read your routes, queen ππ
π¦ where this page comes from
- nixpkgs unstable: comedilib 0.12.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms