STRUCT M24LR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct m24lr(9) β€” the kernel API manual page, bestie edition πŸ¦‹

okay so this is struct m24lr(9) from the Kernel API Manual, and honestly? it's giving "small struct, big responsibilities" energy. let's get into it πŸ’…


✨ NAME ✨

struct m24lr β€” the core driver data for M24LR chip control. yeah. that's the whole vibe. it's the main character struct holding everything the driver needs πŸŽ€


🌸 SYNOPSIS 🌸

struct m24lr {
    u64 uid;
    unsigned int sss_len;
    unsigned int page_size;
    unsigned int eeprom_size;
    struct regmap *ctl_regmap;
    struct regmap *eeprom_regmap;
    struct mutex lock;
 };

literally just look at it. iconic. no cap. πŸ’–


🫢 Members 🫢

okay bestie, member by member, let's go:

  • uid β€” a 64-bit unique identifier that's stored in the device itself. like a little fingerprint, but 64 bits of it ✨
  • sss_len β€” the length of the sss region. that's it, that's the whole thing πŸ¦‹
  • page_size β€” the chip-specific limit on the maximum number of bytes allowed in a single write operation. so if you were thinking "i'll just write a huge chunk," no ma'am, this is the cap πŸŽ€
  • eeprom_size β€” size of the EEPROM, in byte (yes, singular "byte", that's how the original says it, we don't gatekeep πŸ’…)
  • ctl_regmap β€” the regmap interface for accessing the system parameter sector. your hookup to the control-side stuff πŸ”₯
  • eeprom_regmap β€” the regmap interface for accessing the EEPROM. the other hookup, this one for the EEPROM 🌸
  • lock β€” a mutex to synchronize operations to the device. because two threads fighting over one chip is NOT the vibe, and this keeps it cute and orderly ✨

πŸ‘‘ Description πŸ‘‘

so the actual description: this is the central data structure holding the state and resources used by the M24LR device driver. that's it. that's the sentence. it's the main character holding the whole driver's state and resources together, periodt πŸ’œ


🌈 SEE ALSO 🌈


and that's the whole page, bestie πŸ’– it lives in ./drivers/nvmem, the version on this one is October 2026, and the manual page itself is struct m24lr(9) β€” so go forth and slay your M24LR chip control, you've got this πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from