doc_read_seek(9)
π doc_read_seek(9) β like, the Kernel API Manual's cutest little seek function π
okay so bestie, welcome to the Kernel API Manual page for doc_read_seek(9) β¨ this one's short and sweet and honestly kind of a vibe β it just points the flash at the right spot so you can read from it. let's get into it π«Ά
β¨ NAME β¨
doc_read_seek β sets both flash planes to the specified block and page, for reading ππ«
πΈ SYNOPSIS πΈ
int doc_read_seek (struct docg3 *docg3 , int block0 , int block1 , int
page , int wear , int ofs );
π¦ ARGUMENTS π¦
docg3β the device itself, the main character of this whole operation πblock0β the block index of the first plane π§block1β the block index of the second plane π§pageβ which page you want, within the block πwearβ if this is true, the read will happen on the 4 extra bytes of the wear area πofsβ the offset in the page where the read starts π
π₯ DESCRIPTION π₯
So what it actually does: it programs the flash even and odd planes to that specific block and page you handed it. Both planes. At once. Iconic behaviour, no cap π
Or, if you're feeling different today β it programs the flash to the wear area of the page you specified instead πΈ
That's it. That's the whole thing. It's giving "set the coordinates, then go" β
π SEE ALSO π
Kernel file ./drivers/mtd/devices/docg3.c β plus literally the entire extended friend group of doc functions, all of them, here we go π«Ά:
doc_delay(9)doc_read_data_area(9)doc_write_data_area(9)doc_set_reliable_mode(9)doc_set_asic_mode(9)doc_set_device_id(9)doc_set_extra_page_mode(9)doc_setup_addr_sector(9)doc_setup_writeaddr_sector(9)doc_write_seek(9)doc_read_page_ecc_init(9)doc_write_page_ecc_init(9)doc_ecc_disable(9)doc_hamming_ecc_init(9)doc_ecc_bch_fix_data(9)doc_read_page_prepare(9)doc_read_page_getbytes(9)doc_write_page_putbytes(9)doc_get_bch_hw_ecc(9)doc_page_finish(9)doc_read_page_finish(9)calc_block_sector(9)doc_read_oob(9)doc_block_isbad(9)doc_get_erase_count(9)doc_get_op_status(9)doc_write_erase_wait_status(9)doc_erase_block(9)doc_erase(9)doc_write_page(9)doc_guess_autoecc(9)doc_fill_autooob(9)doc_backup_oob(9)doc_write_oob(9)doc_set_driver_info(9)doc_probe_device(9)doc_release_device(9)docg3_resume(9)docg3_suspend(9)docg3_probe(9)docg3_release(9)
aaaand that's the whole page bestie π thanks for reading, mwah π«Ά
signed off from ./drivers/mtd/devices, dated October 2026 β slay, periodt, go read some flash π
β¨
π¦ 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