STRUCT M24LR_CHIP(9)
β¨ 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 thesssregion β¨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 π₯
- Kernel file
./drivers/nvmem/m24lr.c struct m24lr(9)m24lr_regmap_read(9)m24lr_regmap_write(9)m24lr_write(9)m24lr_write_pass(9)
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
- 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