STRUCT IIO_CHANNEL_INFO(9)
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
- 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