comedi_range_is_external(9)
β¨ comedi_range_is_external β¨
okay bestie, welcome to the Kernel API Manual page for comedi_range_is_external(9) β weβre doing kernel-range vibes today and honestly itβs giving βtiny helper function with main character energy.β π
πΈ NAME πΈ
comedi_range_is_external β Test if subdevice range is external.
π SYNOPSIS π
bool comedi_range_is_external (struct comedi_subdevice *s , unsigned int
range );
π¦ ARGUMENTS π¦
sβ COMEDI subdevice. thatβs the subdevice weβre checking, bestie.rangeβ Index of range within a range table. just the lil index, no cap.
π DESCRIPTION π
So the way this works: it tests whether a range is externally referenced by checking whether its RF_EXTERNAL flag is set. iconic flag behavior, honestly. β
It assumes range is valid β like, donβt come for this function with a bad index, okay? π
Also important: this does not work for subdevices using a channel-specific range table list. noted. lowkey crucial. π
π RETURN π
true if the range is external. false if the range is internal. simple, clean, slay. β¨
π₯ 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) - struct
comedi_lrange(9) comedi_range_is_bipolar(9)comedi_range_is_unipolar(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)
thatβs the whole page, bestie π«Ά source/version is ./include/linux/comedi, and itβs dated October 2026 β periodt. π
π¦ 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