STRUCT SPEAR_SMI_FLASH_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct spear_smi_flash_info(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's from the ./include/linux/mtd corner of the kernel and it's literally the glow-up page for struct spear_smi_flash_info. No cap, it's just a platform structure for passing flash information around. Your fave little info-carrier. πŸŽ€


✨ NAME ✨

struct spear_smi_flash_info β€” the platform structure for passing flash information. that's it, that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

struct spear_smi_flash_info {
    char *name;
    unsigned long mem_base;
    unsigned long size;
    struct mtd_partition *partitions;
    int nr_partitions;
    u8 fast_mode;
 };

look at her. six fields. main character energy, honestly. πŸ‘‘


🫢 Members 🫢

so here's the cast of characters, one by one:

  • name β€” the name of the serial nor flash, used for identification. it's giving ✨nametag energy✨ so the kernel knows who's who. πŸ’…
  • mem_base β€” the memory base on which the flash is mapped. that's where she lives, fr fr. πŸ“
  • size β€” size of the flash, in bytes. how much room she's serving. πŸ“
  • partitions β€” the parition details. yep, the breakdown of the partitions themselves. 🧩
  • nr_partitions β€” number of partitions. literally just the count. one, two, ten, whatever. πŸ”’
  • fast_mode β€” whether the flash supports fast mode. a u8 little yes/no blessing. πŸ’¨
ngl bestie, fast_mode is a u8 and not a bool, so don't come for me β€” that's just how she is in the original. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/mtd/spear_smi.h
  • struct spear_smi_plat_data(9) β€” her bestie, go read that one next. 🫢

🌈 sign-off 🌈

that's the whole page, bestie! this one lives under ./include/linux/mtd, dated October 2026, and it's all about struct spear_smi_flash_info(9). mwah, go forth and pass that flash info πŸ’…βœ¨πŸ“


πŸ“¦ where this page comes from