comedi_check...gger_arg_min(9)
π 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,*argwas already at leastval. nothing to do, we love a no-op π-EINVALβ oop,*argwas less thanval. it gets bumped up tovaland you get handed an-EINVALto deal with π
π SEE ALSO π
Kernel file ./include/linux/comedi/comedidev.h π§ β and the whole extended friend group:
struct comedi_subdevice(9)struct comedi_buf_page(9)struct comedi_buf_map(9)struct comedi_async(9)enum comedi_cb(9)struct comedi_driver(9)struct comedi_device(9)struct comedi_lrange(9)comedi_range_is_bipolar(9)comedi_range_is_unipolar(9)comedi_range_is_external(9)comedi_chan_range_is_bipolar(9)comedi_chan_range_is_unipolar(9)comedi_chan_range_is_external(9)comedi_offset_munge(9)comedi_bytes_per_sample(9)comedi_sample_shift(9)comedi_bytes_to_samples(9)comedi_samples_to_bytes(9)comedi_check_trigger_src(9)comedi_check_trigger_is_unique(9)comedi_check_trigger_arg_is(9)comedi_check_trigger_arg_max(9)comedi_buf_n_bytes_ready(9)__comedi_request_region(9)comedi_request_region(9)module_comedi_driver(9)
fr fr, go read the siblings βcomedi_check_trigger_arg_max(9)is the mirror twin andcomedi_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
- 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