STRUCT IIO_SCAN_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct iio_scan_type(9) πŸ‘‘

okay so bestie, welcome to the Kernel API Manual ✨ this page is literally all about struct iio_scan_type, and it's giving β€œspecification for channel data format in buffer” energy πŸ’…


🌸 NAME 🌸

struct iio_scan_type β€” specification for channel data format in buffer 🫢


✨ SYNOPSIS ✨

       struct iio_scan_type {
           union {
             char sign;
             char format;
           };
           u8 realbits;
           u8 storagebits;
           u8 shift;
           u8 repeat;
           enum iio_endian endianness;
        };

πŸŽ€ Members πŸŽ€

  • {unnamed_union} β€” anonymous, bestie. No name, just anonymous union vibes πŸ™ˆ
  • sign β€” deprecated, use format instead. it's the old one, okay? 😭
  • format β€” data format, can have any of the IIO_SCAN_FORMAT_* values. iconic 🌈
  • realbits β€” number of valid bits of data. literally the real ones πŸ’–
  • storagebits β€” Realbits + padding. so, real bits plus the padding situation ✨
  • shift β€” shift right by this before masking out realbits. yes ma’am 🫑
  • repeat β€” number of times real/storage bits repeats. When the repeat element is more than 1, then the type element in sysfs will show a repeat value. Otherwise, the number of repetitions is omitted. periodt πŸ’…
  • endianness β€” little or big endian. endian girlies rise πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹


cute lil sign-off: this page comes from source ./include/linux/iio, dated October 2026, and it's literally struct iio_scan_type(9) β€” mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from