STRUCT IIO_HWMON_STATE(9)
π NAME π
struct iio_hwmon_state β device instance state. Thatβs the whole vibe, bestie. Weβre in the Kernel API Manual and this page is literally all about struct iio_hwmon_state(9). π
β¨ SYNOPSIS β¨
Hereβs the struct in all its glory, every character where it belongs:
struct iio_hwmon_state {
struct iio_channel *channels;
int num_channels;
struct attribute_group attr_group;
const struct attribute_group *groups[2];
struct attribute **attrs;
};
Lowkey iconic little container, no cap. π
π«Ά Members π«Ά
channelsβ filled with array of channels from iio. Thatβs the assignment, bestie. πΈnum_channelsβ number of channels inchannels(saves counting twice). We love not doing math twice. β¨attr_groupβ the group of attributes.groupsβ null terminated array of attribute groups.attrsβ null terminated array of attribute pointers.
π SEE ALSO π
Kernel file ./drivers/hwmon/iio_hwmon.c β go peek if you want the source-tea. π
ok cuties, cute lil sign-off time: source ./drivers/hwmon, manual/version Kernel API Manual, date October 2026, page struct iio_hwmon_state(9). bye bestie, hydrate and read your kernel files! πβ¨π
π¦ 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