spear_mtd_read(9)
β¨ NAME β¨
Okay so this is the spear_mtd_read(9) page from the Kernel API Manual, bestie, and it's giving "flash read operation requested by the user" energy. No cap. π
spear_mtd_read β performs flash read operation as requested by the user.
πΈ SYNOPSIS πΈ
int spear_mtd_read (struct mtd_info *mtd , loff_t from , size_t len ,
size_t *retlen , u8 *buf );
π ARGUMENTS π
mtdβ MTD information of the memory bank. Like the flash chip's official little info card. π³fromβ Address from which to start read. Where the reading begins, periodt.lenβ Number of bytes to be read. How much we're grabbing.retlenβ Fills the Number of bytes actually read. So you know what actually happened.bufβ Fills this after reading. Yes, that's literally what it says. π
π¦ DESCRIPTION π¦
Read an address range from the flash chip. The address range may be any size provided it is within the physical boundaries. Returns 0 on success, non zero otherwise. β¨
π SEE ALSO π
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_smi_erase_sector(9)spear_mtd_erase(9)spear_mtd_write(9)spear_smi_probe_flash(9)spear_smi_probe(9)spear_smi_remove(9)
Signed off from ./drivers/mtd/devices, dated October 2026 β this was spear_mtd_read(9), and she ate. πβ¨
π¦ 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