comedi_request_region(9)
π comedi_request_region(9) β Kernel API Manual β¨
okay bestie, welcome to comedi_request_region, the function that bags you an I/O region for a legacy driver π this is the 9 section of the Kernel API Manual, so like, kernel-internals territory, hydrate first π
πΈ NAME πΈ
comedi_request_region β request an I/O region for a legacy driver π
β¨ SYNOPSIS β¨
int comedi_request_region (struct comedi_device *dev , unsigned long
start , unsigned long len );
literally three args, she's lowkey simple, iykyk π¦
π«Ά ARGUMENTS π«Ά
devβ the COMEDI device. the main character of this whole situation πstartβ base address of the I/O region. like where it starts, obviously πlenβ length of the I/O region. how much of it you're claiming, no cap π
π₯ DESCRIPTION π₯
okay so this one requests the specified I/O port region β and heads up, that region must start at a non-zero address. zero is not the vibe, zero gets rejected π
on success, dev->iobase is set to the base address of the region, and dev->iolen is set to its length. she files her paperwork correctly, we love that for her πβ¨
and the returns? iconic behaviour, honestly:
- returns
0on success β slay π - returns
-EINVALifstartis0β yeah bestie, told you, non-zero only π - returns
-EIOif the request fails β it happens, we move on π
fr fr, don't pass0asstart, that's a guaranteed-EINVALand you'll be crying in the group chat π₯²
π SEE ALSO π
so there's a whole friend group here, and they're all important, so we're listing every single one, no skipping, periodt π
- the kernel file
./include/linux/comedi/comedidev.hβ go read it, it's giving main character energy π 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_check_trigger_arg_max(9)comedi_buf_n_bytes_ready(9)__comedi_request_region(9)module_comedi_driver(9)
that's the whole squad, all 28 of them, go say hi π«Άπ
kisses bestie, the source path is <code>./include/linux/comedi</code> and this edition is stamped October 2026 β go request some I/O regions responsibly and drink some water πππ
π¦ 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