STRUCT IIO_SCAN_TYPE(9)
π 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, useformatinstead. it's the old one, okay? πformatβ data format, can have any of theIIO_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 outrealbits. yes maβam π«‘repeatβ number of times real/storage bits repeats. When therepeatelement is more than 1, then thetypeelement in sysfs will show a repeat value. Otherwise, the number of repetitions is omitted. periodt πendiannessβlittleorbigendian. endian girlies rise π¦
π¦ SEE ALSO π¦
- Kernel file
./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9)struct iio_enum(9)IIO_ENUM(9)IIO_ENUM_AVAILABLE(9)struct iio_mount_matrix(9)IIO_MOUNT_MATRIX(9)struct iio_event_spec(9)IIO_SCAN_FORMAT_SIGNED_INT(9)IIO_SCAN_FORMAT_UNSIGNED_INT(9)IIO_SCAN_FORMAT_FLOAT(9)struct iio_chan_spec(9)iio_channel_has_info(9)iio_channel_has_available(9)struct iio_info(9)struct iio_buffer_setup_ops(9)struct iio_dev(9)iio_device_register(9)devm_iio_device_register(9)iio_device_claim_direct(9)iio_device_release_direct(9)iio_device_try_claim_buffer_mode(9)iio_device_release_buffer_mode(9)IIO_DEV_ACQUIRE_DIRECT_MODE(9)IIO_DEV_ACQUIRE_FAILED(9)IIO_DEV_GUARD_CURRENT_MODE(9)iio_device_put(9)dev_to_iio_dev(9)iio_device_get(9)iio_device_set_parent(9)iio_device_set_drvdata(9)iio_device_get_drvdata(9)IIO_DECLARE_BUFFER_WITH_TS(9)IIO_DECLARE_DMA_BUFFER_WITH_TS(9)IIO_DECLARE_QUATERNION(9)iio_get_debugfs_dentry(9)iio_device_suspend_triggering(9)iio_device_resume_triggering(9)iio_get_current_scan_type(9)iio_get_masklength(9)iio_for_each_active_channel(9)IIO_DEGREE_TO_RAD(9)IIO_RAD_TO_DEGREE(9)IIO_G_TO_M_S_2(9)IIO_M_S_2_TO_G(9)
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
- 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