mtd_ooblayou...nd_eccregion(9)
β¨ NAME β¨
okay so like, this is mtd_ooblayout_find_eccregion β the little function whose whole personality is finding the ECC region that's attached to one specific ECC byte π― she's a Kernel API Manual girlie, very official, very demure π
πΈ SYNOPSIS πΈ
int mtd_ooblayout_find_eccregion (struct mtd_info *mtd , int eccbyte ,
int *section , struct mtd_oob_region *oobregion );
π ARGUMENTS π
mtdβ the mtd info structure, like, the whole vibe context bestie πeccbyteβ the byte we are searching for π literally the main character of this searchsectionβ a pointer where the section id is gonna get stored, so she can report back π«Άoobregionβ OOB region information, all the deets about the region β¨
π¦ DESCRIPTION π¦
okay so real talk β she works exactly like mtd_ooblayout_find_region, no cap, except instead of a normal search she's hunting down one specific ECC byte π§ same energy, different target.
Returns zero on success, and a negative error code otherwise π (so like, check your return value, bestie, fr fr).
π SEE ALSO π
- Kernel file
./drivers/mtd/mtdcore.c mtd_wunit_to_pairing_info(9)mtd_pairing_info_to_wunit(9)mtd_pairing_groups(9)add_mtd_device(9)del_mtd_device(9)mtd_device_parse_register(9)mtd_device_unregister(9)register_mtd_user(9)unregister_mtd_user(9)get_mtd_device(9)of_get_mtd_device_by_node(9)get_mtd_device_nm(9)mtd_ooblayout_ecc(9)mtd_ooblayout_free(9)mtd_ooblayout_find_region(9)mtd_ooblayout_get_bytes(9)mtd_ooblayout_set_bytes(9)mtd_ooblayout_count_bytes(9)mtd_ooblayout_get_eccbytes(9)mtd_ooblayout_set_eccbytes(9)mtd_ooblayout_get_databytes(9)mtd_ooblayout_set_databytes(9)mtd_ooblayout_count_freebytes(9)mtd_ooblayout_count_eccbytes(9)mtd_kmalloc_up_to(9)
that's the whole friend group right there π
mwah π this lil page lives in ./drivers/mtd, stamped October 2026 β and it's signed off as mtd_ooblayou...nd_eccregion(9) because apparently we're all out here with truncated names, iykyk ππ
π¦ 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