STRUCT HMC5843_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct hmc5843_data(9) πŸ¦‹

okay so bestie, this page is from the Kernel API Manual, and it's giving β€œdevice-specific data, but make it a struct.” no cap, it's literally the blueprint for struct hmc5843_data. πŸ’…


✨ NAME ✨

struct hmc5843_data β€” device specific data πŸŽ€

πŸŽ€ SYNOPSIS πŸŽ€

       struct hmc5843_data {
           struct device *dev;
           struct mutex lock;
           struct regmap *regmap;
           const struct hmc5843_chip_info *variant;
           struct iio_mount_matrix orientation;
           struct {
             __be16 chans[3];
             aligned_s64 timestamp;
           } scan;
        };

🫢 Members 🫢

  • dev β€” actual device, the main character of this lil' struct πŸ’–
  • lock β€” update and read regmap data πŸ”’
  • regmap β€” hardware access register maps πŸ—ΊοΈ
  • variant β€” describe chip variants 🌈
  • scan β€” buffer to pack data for passing to iio_push_to_buffers_with_ts πŸ“¦

also yes, orientation is right there in the struct as a struct iio_mount_matrix; the original member rundown just doesn't give it a separate blurb. iykyk πŸ¦‹

🌈 SEE ALSO 🌈

Kernel file ./drivers/iio/magnetometer/hmc5843.h ✨


this lil' page comes from ./drivers/iio/magnetometer, dated October 2026, per the footer vibes. mwah πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from