STRUCT COMEDI_LRANGE(9)
π struct comedi_lrange(9) β like, the whole kernel API manual vibe π
okay so bestie, we're doing a deep dive on struct comedi_lrange(9) β yes that's the name, and yes it's from the Kernel API Manual, and yes I'm obsessed already. it's giving "small struct, big responsibilities." let's go β¨
πΈ NAME πΈ
struct comedi_lrange β literally just describes a COMEDI range table. that's the whole job. no cap. π
β¨ SYNOPSIS β¨
struct comedi_lrange {
int length;
struct comedi_krange range[];
};
look at her. two members. main character energy fr fr π¦
π Members π
lengthβ the number of entries in the range table. like a headcount for the ranger squad π«Άrangeβ an array ofstruct comedi_krange, one for every range. one range = one entry, matching energy, periodt π
π Description π
okay so each element of range[] describes the minimum and maximum physical range plus the type of units. that's it, that's the vibe check π§
typically the type of unit is UNIT_volt (i.e. volts, duh) and the minimum and maximum are in millionths of a volt. tiny numbers, big meaning, iykyk β
there may also be a flag that indicates the minimum and maximum are merely scale factors for an unknown, external reference. lowkey mysterious, highkey useful π
π₯ SEE ALSO π₯
- Kernel file:
./include/linux/comedi/comedidev.h 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)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)comedi_request_region(9)module_comedi_driver(9)
like, that's the whole friend group right there π«Άπ
and that's the page bestie! π this one lives under ./include/linux/comedi, dated October 2026, and it's part of the Kernel API Manual β struct comedi_lrange(9) out, slay forever ππ
π¦ 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