STRUCT IIO_CHANNEL_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the struct iio_channel_info(9) page from the Kernel API Manual ✨ this struct is literally the info card for a given channel, and we’re gonna go through every lil field together β€” no skips, no cap πŸ’…

πŸŽ€ NAME πŸŽ€

struct iio_channel_info β€” information about a given channel 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct iio_channel_info {
           char *name;
           char *generic_name;
           float scale;
           float offset;
           unsigned index;
           unsigned bytes;
           unsigned bits_used;
           unsigned shift;
           uint64_t mask;
           unsigned be;
           char format;
           unsigned location;
        };

🌸 Members 🌸

okay so here’s the whole cast of fields, and yes every single one is invited to the group chat:

  • name β€” the channel name πŸ’–
  • generic_name β€” the general name for the channel type ✨
  • scale β€” the scale factor you apply when converting to si units πŸŽ€
  • offset β€” the offset you apply when converting to si units πŸ¦‹
  • index β€” the channel index in the buffer output 🌸
  • bytes β€” how many bytes it occupies in the buffer output πŸ’…
  • bits_used β€” the number of valid bits of data 🫢
  • shift β€” how many bits to shift the data right by, before applying the bit mask 😭
  • mask β€” a bit mask for the raw output πŸ”₯
  • be β€” a flag if the data is big endian πŸ’€
  • format β€” the format of the raw value πŸ‘‘
  • location β€” the data offset for this channel inside the buffer, in bytes πŸ“

⭐ SEE ALSO ⭐

Kernel file ./tools/iio/iio_utils.h β€” go peek, iykyk 🧚


Source/version: ./tools/iio Β· date: October 2026 Β· manual: struct iio_channel_info(9) β€” that’s the whole page, bestie, mwah πŸ’‹

πŸ“¦ where this page comes from