STRUCT M24LR_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct m24lr_chip(9) ✨

okay bestie, gather round πŸ’– this is a page from the Kernel API Manual, and it's literally all about struct m24lr_chip β€” the little struct that's out here doing main character work describing chip-specific sysfs layout. no cap. πŸŽ€


🌸 NAME 🌸

struct m24lr_chip β€” describes chip-specific sysfs layout πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct m24lr_chip {
    unsigned int sss_len;
    unsigned int page_size;
    unsigned int eeprom_size;
 };

like, that's the whole struct. three unsigned int fields. iconic minimalism, honestly πŸ‘‘


πŸŽ€ Members πŸŽ€

  • sss_len β€” the length of the sss region ✨
  • page_size β€” the chip-specific limit on the maximum number of bytes allowed in a single write operation. so like, that's your ceiling per write, don't come for it 🫢
  • eeprom_size β€” size of the EEPROM in byte πŸ’Ύ

πŸ’œ Description πŸ’œ

so the whole point of this struct is that it supports multiple M24LR chip variants (e.g., M24LRxx) πŸ˜­πŸ” β€” like, each variant can define its own set of sysfs attributes, depending on its available registers and features. the way that this struct lets every chip have its own little personality... obsessed πŸ’…βœ¨


πŸ”₯ SEE ALSO πŸ”₯

go read those next, iykyk πŸ‘€πŸ“š


and that's the tea, bestie πŸ“ this was struct m24lr_chip(9) live from ./drivers/nvmem, stamped October 2026 in the Kernel API Manual β€” slay, bye πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from