comedi_check...gger_arg_max(9)
π 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*argwas already no more thanval. slay, it passed β¨-EINVALβ if*argwas greater thanval. 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 π«Ά:
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_min(9)comedi_buf_n_bytes_ready(9)__comedi_request_region(9)comedi_request_region(9)module_comedi_driver(9)
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
- 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