ni_tio_set_routing(9)
π ni_tio_set_routing(9) β the Kernel API Manual page your group chat has been waiting for
okay so picture this: you're deep in the Kernel API Manual, right, and you need to point a signal at a destination. That's literally this function. It sets the register value of the selector MUX for the given destination. MUX, as in multiplexer, as in the traffic cop of your counter. icon status fr fr β¨
πΈ NAME πΈ
ni_tio_set_routing β sets the register value of the selector MUX for the given destination. she picks the lane, she writes the value, she doesn't ask questions π
π¦ SYNOPSIS π¦
int ni_tio_set_routing (struct ni_gpct_device *counter_dev , unsigned
int dest , unsigned int reg );
π ARGUMENTS π
counter_devβ pointer to the general counter device π«Ά like, the whole vibe. The device itself. You hand her the pointer and she knows what's up.destβ the device-global identifier of the route destination πΊοΈ not a local thing, not an "ah whatever" thing β device-global. She needs to know exactly which destination you mean.regβ okay bestie, this one's got layers, listen:- the first several bits of this value should store the desired value to write to the register π₯ that's the payload, the main character bits
- all other bits are for transmitting information that modifies the mode of that particular destination/gate β¨
- those mode bits might include a bitwise or of
CR_INVERTandCR_EDGEπ§ - > β οΈ note that the calling function should have already validated the correctness of this value. Not her job. She is NOT doing the vibe check for you β you already did it, right? Right?? π
π SEE ALSO π
the Kernel file ./drivers/comedi/drivers/ni_tio.c plus her whole friend group:
all of them ate, no notes π
and that's the page!! π brought to you by the legends over at ./drivers/comedi/drivers, dated October 2026 β yes, October 2026, she's ahead of her time, lowkey iconic of her. mwah π slay, bye π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms