comedi_check...gger_arg_max(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to comedi_check...gger_arg_max(9) from the Kernel API Manual β€” she’s the lowkey little validator with main character energy ✨. Her whole deal is to trivially validate a trigger argument max. No cap.

✨ SYNOPSIS ✨

int comedi_check_trigger_arg_max (unsigned int *arg , unsigned int val
       );

πŸŽ€ ARGUMENTS πŸŽ€

  • arg β€” pointer to the trigger arg to validate. literally what it says 🫢
  • val β€” the maximum value the argument should be. that’s the ceiling, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

She forces *arg to be no more than val, and if that means setting it to val, she does exactly that. It’s giving β€œboundary check but make it cute” πŸ’….

🌸 RETURN 🌸

  • 0 β€” if *arg was already no more than val. slay, it passed ✨
  • -EINVAL β€” if *arg was greater than val. nope, too big, invalid πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

The kernel file is ./include/linux/comedi/comedidev.h, and these are all the related pages in the group chat 🫢:


okay that’s the whole page, bestie πŸ’–. Source/version on this one is ./include/linux/comedi, and the date is October 2026 β€” page title stays comedi_check...gger_arg_max(9). bye, love u 🫢✨

πŸ“¦ where this page comes from