comedi_range_is_unipolar(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘


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