comedi_check...gger_arg_min(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ comedi_check_trigger_arg_min β€” NAME πŸŽ€

okay so bestie, welcome to the comedi_check_trigger_arg_min(9) page from the Kernel API Manual πŸ’– β€” this one is literally the tiniest little validator: comedi_check_trigger_arg_min β€” trivially validate a trigger argument min. yes, "trivially", the kernel devs said it themselves, it's giving humble icon behavior ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 ARGUMENTS 🌸

  • arg β€” pointer to the trigger arg you wanna validate 🫢 like, this is the thing being checked, not the thing doing the checking.
  • val β€” the minimum value the argument should be. the floor. the bare minimum. we stan a boundary πŸ’…

✨ DESCRIPTION ✨

so here's the whole vibe: it forces *arg to be at least val β€” and if *arg is being a little underachiever and is less than val, it just sets it to val for you. no cap, it will literally overwrite your value to lift it up to the minimum. main character energy, honestly πŸ‘‘


πŸ’€ RETURN πŸ’€

  • 0 β€” slay, *arg was already at least val. nothing to do, we love a no-op πŸŽ€
  • -EINVAL β€” oop, *arg was less than val. it gets bumped up to val and you get handed an -EINVAL to deal with 😭

🌈 SEE ALSO 🌈

Kernel file ./include/linux/comedi/comedidev.h 🧚 β€” and the whole extended friend group:

fr fr, go read the siblings β€” comedi_check_trigger_arg_max(9) is the mirror twin and comedi_check_trigger_arg_is(9) is the strict one πŸ’œ

anyway that's the whole page, bestie, you ate that πŸ“ β€” this lil gem lives at ./include/linux/comedi, dated October 2026, straight from the Kernel API Manual. mwah, go validate some triggers responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from