doc_get_op_status(9)
π doc_get_op_status β the kernel API manual, but make it cute
okay so bestie, this one's from the Kernel API Manual, section 9 (that's the kernel developer's section, iykyk). Let's get into it π«Ά
β¨ NAME β¨
doc_get_op_status β get the erase/write operation status π
Like, it literally just tells you where your erase/write op is at. Main character energy for a tiny function.
πΈ SYNOPSIS πΈ
int doc_get_op_status (struct docg3 *docg3 );
That's it. That's the whole vibe check. One arg, returns an int. Slay. β¨
π ARGUMENTS π
docg3β the device π¦ (the actualstruct docg3you're poking at, no cap)
π DESCRIPTION π
So what this does is it queries the status from the chip, and then returns it. That's genuinely the whole thing, bestie β it goes and asks the chip "hey what's up" and hands you back the answer. π
It returns the status, and that status comes as DOC_PLANES_STATUS_* bits. Those are the bits you're looking at, periodt. π
not me writing three sentences about a function that does exactly one thing π but that's the manpage, and we keep every detail here, fr fr
π SEE ALSO π
Kernel file ./drivers/mtd/devices/docg3.c β that's where the whole crew lives π§
And now the entire friend group, all of them, in order, no skipping (I would never π€):
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_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_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)
look at that list. forty-one little icons. ate and left no crumbs π₯
and that's the page!! π this one comes from ./drivers/mtd/devices, dated October 2026, and it's doc_get_op_status(9) all the way down. mwah, go read your chip status bestie π
π
π¦ 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