spear_smi_erase_sector(9)
π
spear_smi_erase_sector(9) π
okay so bestie, welcome to Kernel API Manual energy β this is spear_smi_erase_sector(9), and it's literally the function for erasing one sector of flash. No cap.
πΈ NAME πΈ
spear_smi_erase_sector β erase one sector of flash β¨
β¨ SYNOPSIS β¨
here's the signature, exactly as it appears, no edits:
int spear_smi_erase_sector (struct spear_smi *dev , u32 bank , u32
command , u32 bytes );
π ARGUMENTS π
devβ thestruct spear_smithat holds the SMI information. it's giving main character struct energy π«Άbankβ the bank this command needs to be send to. yes, "send" β we're keeping the original grammar vibe πcommandβ the erase command to be send.bytesβ size of the command.
π₯ DESCRIPTION π₯
okay so the actual job, lowkey simple: erase one sector of flash memory at offset offset β and that offset is any address within the sector which should be erased. Returns 0 if successful (slay), non-zero otherwise. That's the whole vibe check, periodt β¨
π SEE ALSO π
the whole friend group, iykyk π:
- Kernel file:
./drivers/mtd/devices/spear_smi.c struct spear_smi(9)struct spear_snor_flash(9)spear_smi_read_sr(9)spear_smi_wait_till_ready(9)spear_smi_int_handler(9)spear_smi_hw_init(9)get_flash_index(9)spear_smi_write_enable(9)spear_mtd_erase(9)spear_mtd_read(9)spear_mtd_write(9)spear_smi_probe_flash(9)spear_smi_probe(9)spear_smi_remove(9)
mwah π this page comes from ./drivers/mtd/devices, dated October 2026, and it's all about spear_smi_erase_sector(9) β iconic footer behavior, ngl π«Ά
π¦ 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