STRUCT SPEAR_SMI_PLAT_DATA(9)
π 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 astruct 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 asstruct device_node *np[MAX_NUM_FLASH_CHIP];so yes, it's an array, sized byMAX_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
- 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