doc_setup_addr_sector(9)
π doc_setup_addr_sector(9) β like, the whole manual, but make it make sense
okay so bestie, welcome to the Kernel API Manual β¨ this one is doc_setup_addr_sector(9) and honestly? it's a little baddie with one very specific job. let's get into it π
πΈ NAME
doc_setup_addr_sector β sets up the block / page / ofs address for one single plane. that's it. that's the whole vibe. π
β¨ SYNOPSIS
void doc_setup_addr_sector (struct docg3 *docg3 , int sector );
like, it returns void β no receipts, no return value, it just does the thing and leaves π. copy it exactly,ε符 for character, no cap fr fr π«Ά
π¦ ARGUMENTS
docg3β the device π₯οΈ like, the actual disk-on-chip device you're working with. she's the main character here.sectorβ the sector πΈ the one you're pointing at. your little address bestie.
ngl these two are the whole personality of the function. one device, one sector, zero drama β¨
π₯ SEE ALSO
okay so this is the part where the kernel introduces you to the entire friend group π forty (40) whole functions, and every single one of them is invited to the party. no plus-ones, they're all listed:
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_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)
and if you wanna read the source yourself (iconic behaviour, honestly π), the kernel file is ./drivers/mtd/devices/docg3.c β she's right there, go say hi π
lowkey the 9 in every single one of those means "kernel API section", iykyk π§
and that's the whole page, bestie β you ate π
β¨ this lil' manual lives in ./drivers/mtd/devices, dated October 2026, and it's filed under doc_setup_addr_sector(9). periodt ππ¦
π¦ 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