STRUCT HMC5843_DATA(9)
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 toiio_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
- 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