comedi_range_is_unipolar(9)
β¨ NAME β¨
okay bestie, this is comedi_range_is_unipolar(9) from the Kernel API Manual, and it's literally the little function that tests if a subdevice range is unipolar. that's the whole vibe π
π«Ά SYNOPSIS π«Ά
bool comedi_range_is_unipolar (struct comedi_subdevice *s , unsigned int
range );
π ARGUMENTS π
sβ a COMEDI subdevice. hello main character π«Άrangeβ the index of a range within a range table. lowkey important β¨
π DESCRIPTION π
It tests whether a range is unipolar by checking whether its minimum value is at least 0. that's the whole test, no cap π
It assumes range is valid. no validation arc, bestie.
It does not work for subdevices using a channel-specific range table list. so don't try it there, fr fr π
π RETURN π
trueβ if the range is unipolar. slay β¨falseβ if the range is bipolar. different vibe π¦
π₯ SEE ALSO π₯
kernel file: ./include/linux/comedi/comedidev.h β go peek, bestie π
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_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)
okay that's the whole page, bestie source/version: ./include/linux/comedi; date: October 2026 β comedi_range_is_unipolar(9) signing off, mwah πβ¨
π¦ 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