comedi_range_is_external(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯


that’s the whole page, bestie 🫢 source/version is ./include/linux/comedi, and it’s dated October 2026 β€” periodt. πŸ’œ

πŸ“¦ where this page comes from