ni_check_trigger_arg_roffs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the NI_* 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 to src if src is 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 πŸ”₯

  • 0 if the src (either register value or NI signal/terminal name) is valid for the destination πŸ’–
  • -EINVAL otherwise 😭 (the vibe check failed, sorry bestie)

🌈 SEE ALSO 🌈

go read those if you want the full cinematic universe, fr fr πŸ“šβœ¨


ngl if you got a -EINVAL back, something in your src/dest situation 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