STRUCT LM75_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct lm75_params(9) πŸ’…

okay so this is a page from the Kernel API Manual β€” yes THE Kernel API Manual, we're literally in the big leagues bestie πŸŽ€ β€” and it's all about struct lm75_params, aka the little configuration-parameters glow-up kit for the lm75 driver. it's giving "let me introduce you to the settings" energy and honestly? obsessed.


✨ NAME ✨

struct lm75_params β€” the lm75 configuration parameters. that's it, that's the vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

struct lm75_params {
    bool config_reg_16bits;
    u16 set_mask;
    u16 clr_mask;
    u8 default_resolution;
    u8 resolution_limits;
    const u8                *resolutions;
    unsigned int            default_sample_time;
    u8 num_sample_times;
    const unsigned int      *sample_times;
    bool alarm;
 };

like, copy it exactly, don't @ me β€” this is the whole struct, every field, periodt. πŸ’…


πŸ‘‘ Members πŸ‘‘

bestie, let's go field by field, because each one is a whole main character:

  • config_reg_16bits β€” tells you the configure register size is 2 bytes. two. bytes. iconic.
  • set_mask β€” the bits to set in the configuration register when you're configuring the chip. turning things ON energy πŸ”₯
  • clr_mask β€” the bits to clear in the configuration register when you're configuring the chip. turning things OFF energy, equally valid πŸ’€
  • default_resolution β€” the default number of bits used to represent the temperature value. how much detail the temp gets, basically.
  • resolution_limits β€” limits the register resolution. it's optional, so no pressure 🫢. but you should set it if the resolution of the limit registers does not match the resolution of the temperature register. mismatched resolutions = not the vibe.
  • resolutions β€” a list of resolutions associated with sample times. also optional ✨. you should set it if num_sample_times is larger than 1, and if the resolution changes with sample times. and if you do set it β€” the number of entries must match num_sample_times. no cap, they have to match.
  • default_sample_time β€” the sample time that gets set by default. the pre-selected option, the default answer on the quiz πŸ“
  • num_sample_times β€” the number of possible sample times to be set. this one's optional too 🌈. should be set if the number of sample times is larger than one.
  • sample_times β€” all the possible sample times to be set. this one is mandatory if num_sample_times is larger than 1 🚨. and if set, the number of entries must match num_sample_times. same matching rule, fr fr.
  • alarm β€” the alarm bit is supported. simple as that. 🚨✨

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hwmon/lm75.c β€” go read the source, iykyk πŸ”

that's the whole page bestie, you ate that πŸ’– β€” this cutie came from the ./drivers/hwmon source, dated October 2026, and it's still serving struct lm75_params(9) realness to this day. mwah πŸŽ€πŸ’œ

πŸ“¦ where this page comes from