comedi_chan_...e_is_bipolar(9)
β¨ comedi_chan_range_is_bipolar β the cutest little polarity check π
okay so bestie, welcome to the Kernel API Manual page for comedi_chan_range_is_bipolar(9) β yes the header is truncated and it's giving "we ran out of room at the function name" energy, but it's literally the same function, iykyk. π
πΈ NAME πΈ
comedi_chan_range_is_bipolar β test if the channel-specific range is bipolar π¦
β¨ SYNOPSIS β¨
bool comedi_chan_range_is_bipolar (struct comedi_subdevice *s , unsigned
int chan , unsigned int range );
Three args, one bool back. Slay. π
π«Ά ARGUMENTS π«Ά
sβ the COMEDI subdevice. that's your main character right there πchanβ the channel number, bestie. which one are we looking at πrangeβ the index of the range within a range table. not the range itself, the index. important fr fr β
π DESCRIPTION π
So what does it do? It tests whether a range is bipolar by checking whether its minimum value is negative. that's the whole vibe check, no cap π§
β οΈ heads up: it assumeschanandrangeare valid. it does not check. it is trusting you completely and that's a lot of pressure ngl π also it only works for subdevices with a channel-specific range table list. if you don't have one of those, this function is not for you, sorry bb π
π₯ RETURN π₯
trueβ the range is bipolar πfalseβ the range is unipolar π
that's it, that's the whole return. iconic. periodt. π
π SEE ALSO π
the kernel file ./include/linux/comedi/comedidev.h and honestly a whole friend group of functions and structs β here's the full squad, no one left out π«Ά:
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_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)
okay that's the whole page bestie, go forth and check your polarity π
this masterpiece lives in ./include/linux/comedi, dropped October 2026, and answers to comedi_chan_...e_is_bipolar(9) β mwah, love that for us πβ¨
π¦ 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