STRUCT SPEAR_SMI_PLAT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this is a page from the Kernel API Manual and it's all about struct spear_smi_plat_data β€” literally the platform structure for configuring smi. that's it, that's the whole vibe. she's a config queen πŸ‘‘


✨ NAME ✨

struct spear_smi_plat_data β€” the platform structure for configuring smi, bestie. no cap, that's what she does 🫢


🌸 SYNOPSIS 🌸

struct spear_smi_plat_data {
    unsigned long clk_rate;
    int num_flashes;
    struct spear_smi_flash_info *board_flash_info;
    struct device_node *np[MAX_NUM_FLASH_CHIP];
 };

like… look at her. four members. clean. iconic. a whole little outfit πŸ’…


πŸ¦‹ Members πŸ¦‹

  • clk_rate β€” the clk rate at which SMI must operate. that's the number, that's the assignment, she operates at it, periodt ⭐
  • num_flashes β€” number of flashes present on board. just a count. a headcount. how many flashes showed up to the party πŸ”₯
  • board_flash_info β€” specific details of each flash present on board, as a struct spear_smi_flash_info *. so this one's the receipts for every flash on the board πŸ“‹βœ¨
  • np β€” array of DT node pointers for all possible flash chip devices. it's declared as struct device_node *np[MAX_NUM_FLASH_CHIP]; so yes, it's an array, sized by MAX_NUM_FLASH_CHIP, holding pointers to DT nodes, for all possible flash chip devices, not just the ones that showed up. very main character energy, planning ahead πŸ’œ
no extra lore here, she's not mysterious, every field is right there in the synopsis. read the struct, know the struct πŸŽ€

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/mtd/spear_smi.h β€” go look at the header, it's giving source of truth πŸ“
  • struct spear_smi_flash_info(9) β€” the other struct, the flash-details one, linked and everything πŸ’–

okay that's the whole page, go touch some flash chips (metaphorically) πŸ§šβ€β™€οΈβœ¨

this little gem lives in ./include/linux/mtd and was dated October 2026 β€” so yes, from the future, slay πŸ‘‘πŸ’« thanks for reading bestie, mwah 🫢

πŸ“¦ where this page comes from