mtd_ooblayout_find_region(9)
πΈ NAME πΈ
mtd_ooblayout_find_region(9) β hiiii bestie, this one's from the Kernel API Manual β is literally Find the region attached to a specific byte. No cap, that's the whole vibe. π
β¨ SYNOPSIS β¨
int mtd_ooblayout_find_region (struct mtd_info *mtd , int byte , int
*sectionp , struct mtd_oob_region *oobregion , int (*iter)(struct
mtd_info *, int section, struct mtd_oob_region *oobregion) );
π ARGUMENTS π
Okay so here's the cast of characters, bestie:
mtdβ mtd info structure.byteβ the byte we are searching for.sectionpβ pointer where the section id will be stored.oobregionβ used to retrieve the ECC position.iterβ iterator function. Should be eithermtd_ooblayout_freeormtd_ooblayout_eccdepending on the region type you're searching for.
π¦ DESCRIPTION π¦
This function returns the section id and oobregion information of a specific byte. Like, imagine you're trying to figure out where the 4th ECC byte is stored β you'll use this exact call:
mtd_ooblayout_find_region(mtd, 3, section, oobregion,
mtd_ooblayout_ecc);
Returns zero on success, a negative error code otherwise. Periodt. π
π SEE ALSO π
Kernel file to peek at: ./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_eccregion(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)
Catch you later, bestie π β this page came from ./drivers/mtd, October 2026, and it's literally mtd_ooblayout_find_region(9) coded with love. π«Ά
π¦ 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