STRUCT IIO_HWMON_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 in channels (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