comedi_chan..._is_external(9)
๐ comedi_chan..._is_external(9) โ like, the Kernel API Manual one, bestie โจ
okay so real talk, this page is titled comedi_chan..._is_external(9) and it lives in the Kernel API Manual, and it's about one (1) tiny little question: is this channel's range externally referenced or not? that's it. that's the whole vibe. ๐
๐ธ NAME ๐ธ
comedi_chan_range_is_external โ bestie, it tests if a channel-specific range is external. no cap, that's the whole job. โจ
๐ฆ SYNOPSIS ๐ฆ
bool comedi_chan_range_is_external (struct comedi_subdevice *s ,
unsigned int chan , unsigned int range );
it hands you back a bool, and it takes three things. we'll get to those. ๐ซถ
๐ ARGUMENTS ๐
sโ the COMEDI subdevice. this is your main character, the struct you're interrogating ๐chanโ the channel number. which channel are we snooping on ๐rangeโ the index of the range within a range table. like, which slot in the list, not the value itself, iykyk ๐ธ
โญ DESCRIPTION โญ
so what does it actually do? it tests whether a range is externally referenced โ and the way it checks is by looking at whether that range's RF_EXTERNAL flag is set. that's the whole test. flag set โ external energy. flag not set โ not external energy. iconic, honestly. ๐ฅ
โ ๏ธ okay important caveats, listen up bestie โ this function assumeschanandrangeare valid. it does not validate them for you, it just trusts you. and it only works for subdevices with a channel-specific range table list. anything else and, well, it's giving undefined vibes. ๐
๐ RETURN ๐
trueif the range is bipolar.falseif the range is unipolar.
that's literally what the page says, so that's literally what I'm telling you. periodt. โจ
๐ฎ SEE ALSO ๐ฎ
the whole friend group, in the 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_range_is_external(9)comedi_chan_range_is_bipolar(9)comedi_chan_range_is_unipolar(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, the entire roster. go read them, they're all right there. ๐ง
okay that's the whole page!! mwah ๐ this one came out of ./include/linux/comedi and the date on it is October 2026, so if you're reading this in some other timeline, that's on you bestie โ stay slay, stay external-flag-aware, and go check your RF_EXTERNAL bits. ๐๐โญ
๐ฆ 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