doc_set_reliable_mode(9)
πΎ doc_set_reliable_mode(9) β a Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual today and this one is genuinely such a vibe. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
doc_set_reliable_mode β sets the flash to normal or reliable data mode π
πΈ SYNOPSIS πΈ
void doc_set_reliable_mode (struct docg3 *docg3 );
π ARGUMENTS π
docg3β the device, bestie. that's it. that's the whole argument. she's low maintenance π
π¦ DESCRIPTION π¦
okay so picture this: the reliable data mode is a bit slower than the fast mode, but like... fewer errors happen, and honestly? that tradeoff ate. π
π¨ important lore: entering the reliable mode cannot be done without entering the fast mode first. no cap. you gotta go fast to get reliable. the way that works is so iconic.
Now for the main character detail β in reliable mode, pages 2*n and 2*n+1 are clones. like, literally twins. π―
Writing to page 0 of blocks (4,5) makes the hardware write also to page 1 of blocks (4,5). and reading from page 0 of blocks (4,5) or from page 1 of blocks (4,5) gives you the same result β which is a logical and between bytes from page 0 and page 1. which is, btw, totally consistent with the fact that writing to a page is clearing bits of that page. see? it all connects. iykyk π«
π SEE ALSO π
Kernel file ./drivers/mtd/devices/docg3.c β and the whole friend group fr fr:
doc_delay(9)doc_read_data_area(9)doc_write_data_area(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_read_seek(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)
k that's the page!! π this lil icon lives in ./drivers/mtd/devices, dated October 2026, and yes the manual page name at the top and bottom is the same doc_set_reliable_mode(9) β we love consistency π mwah, go clear some bits responsibly π§ββοΈβ¨
π¦ 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