ENUM IIO_SIMPLE_DUMMY_SCAN_ELEMENTS(9)
π enum iio_simple_dummy_scan_elements π
okay bestie, so this is a page straight out of the Kernel API Manual β like, kernel-kernel, no cap. it's about the enum iio_simple_dummy_scan_elements, and honestly? it's giving "small but mighty" energy. let's get into it π«Ά
β¨ NAME β¨
enum iio_simple_dummy_scan_elements β the scan index enum. that's it, that's the whole vibe check: it's an enum, and it's here to give you scan indexes. π
πΈ SYNOPSIS πΈ
enum iio_simple_dummy_scan_elements {
DUMMY_INDEX_VOLTAGE_0 ,
DUMMY_INDEX_DIFFVOLTAGE_1M2 ,
DUMMY_INDEX_DIFFVOLTAGE_3M4 ,
DUMMY_INDEX_ACCELX
};
like, look at her. four constants, one tidy little enum, zero drama β¨
π¦ Constants π¦
okay so these are the members, and each one has a job. main character energy, every single one:
DUMMY_INDEX_VOLTAGE_0β the single ended voltage channel π that's literally what it is.DUMMY_INDEX_DIFFVOLTAGE_1M2β the first differential channel. she's first, she knows it.DUMMY_INDEX_DIFFVOLTAGE_3M4β the second differential channel π yes bestie, they're numbered, keep up.DUMMY_INDEX_ACCELXβ the acceleration channel π₯ accel X, in the house.
π Description π
so what's the point of this enum, you ask? it's giving convenience. the enum provides convenient numbering for the scan index β that's the entire flex. no hidden lore, no secret behavior, just nice clean numbering so nobody's out here hardcoding magic numbers like a menace π
π SEE ALSO π
- the kernel file
./drivers/iio/dummy/iio_simple_dummy.hβ go read it, it's the source of truth π§ struct iio_dummy_state(9)β the struct that's lowkey connected to all this
okay that's the whole page, bestie, you ate it up π this came from ./drivers/iio/dummy, dated October 2026, and it's page enum iio_si...can_elements(9) of the Kernel API Manual β go forth and index your scans, periodt π
π¦ 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