mtd_ooblayou...unt_eccbytes(9)
π NAME π
mtd_ooblayout_count_eccbytes β bestie, this one literally counts the number of ECC bytes in OOB β¨
π SYNOPSIS π
int mtd_ooblayout_count_eccbytes (struct mtd_info *mtd );
πΈ ARGUMENTS πΈ
mtdβ the mtd info structure π«Ά (that's it, that's the whole vibe check)
π¦ DESCRIPTION π¦
okay so picture this: it works exactly like mtd_ooblayout_count_bytes π β¦except β and this is the whole main character moment β it counts ECC bytes. no cap. that's the difference. obsessed.
It returns zero on success π, and a negative error code otherwise π (so like, if you get a negative number back, that's your sign that something went sideways, fr fr).
β SEE ALSO β
Kernel file ./drivers/mtd/mtdcore.c β go read it iykyk π
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_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_kmalloc_up_to(9)
that's the whole read, bestie π this lil page lives in ./drivers/mtd and it's dated October 2026 β mwah, go count some ECC bytes, slay ππ
π¦ 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