ni_check_trigger_arg_roffs(9)
β¨ ni_check_trigger_arg_roffs β¨
okay so bestie, welcome to the Kernel API Manual π
this one's literally called ni_check_trigger_arg_roffs(9) and it's a whole vibe check for trigger arguments, i promise it's not as scary as it sounds π«Ά
πΈ NAME πΈ
ni_check_trigger_arg_roffs β checks the trigger argument (*_arg) of an NI device to make sure the *_arg value corresponds to either a valid register value that defines a trigger source, or a valid NI signal/terminal name that has a valid route to the destination on that particular device. no cap, it's doing double duty β¨
π¦ SYNOPSIS π¦
int ni_check_trigger_arg_roffs (int src , const int dest , const struct
ni_route_tables *tables , const int direct_reg_offset );
π ARGUMENTS π
srcβ either a direct register value or one of theNI_*signal names. it's giving "pick a lane" but honestly both lanes are valid πββοΈdestβ the global-identifier for the route destination. like, where are we going, bestie? πtablesβ pointer to the relevant set of routing tables. the receipts, the lore, the maps πdirect_reg_offsetβ compatibility compensation argument. this one lets us arbitrarily apply an offset tosrcifsrcis a direct register value reference. why? because we gotta stay compatible with definitions of register values as previously exported directly to user space. lowkey a legacy thing but it's iconic and we respect it π«‘
π₯ RETURN π₯
0if thesrc(either register value or NI signal/terminal name) is valid for the destination π-EINVALotherwise π (the vibe check failed, sorry bestie)
π SEE ALSO π
- Kernel file
./drivers/comedi/drivers/ni_routes.h struct ni_route_set(9)struct ni_device_routes(9)struct ni_route_tables(9)route_is_valid(9)route_register_is_valid(9)ni_get_reg_value_roffs(9)
go read those if you want the full cinematic universe, fr fr πβ¨
ngl if you got a-EINVALback, something in yoursrc/destsituation is NOT it, and you should go reread those structs above before you come for this function π
and that's the whole page, bestie π this gem lives over in ./drivers/comedi/drivers , dated October 2026 , and it's filed under ni_check_trigger_arg_roffs(9) β slay, you're welcome, mwah ππ§ββοΈ
π¦ 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