mtd_ooblayout_set_eccbytes(9)
π NAME π
hey bestie, welcome to mtd_ooblayout_set_eccbytes(9) from the Kernel API Manual π β and yes, itβs literally giving βset ECC bytes into the oob bufferβ energy. β¨
β¨ SYNOPSIS β¨
okay so hereβs the signature, copy-paste-ready and exactly as it appears:
int mtd_ooblayout_set_eccbytes (struct mtd_info *mtd , const u8 *eccbuf
, u8 *oobbuf , int start , int nbytes );
πΈ ARGUMENTS πΈ
mtdβ the mtd info structure, aka the context bestie / main character of this call πeccbufβ source buffer to get ECC bytes from πoobbufβ the OOB buffer, periodt πstartβ first ECC byte to set, iykyknbytesβ number of ECC bytes to set β like, how many little guys weβre moving π§
π¦ DESCRIPTION π¦
okay so it works like mtd_ooblayout_set_bytes, except it acts on ECC bytes β thatβs the whole vibe, no cap. π
Returns zero on success, a negative error code otherwise. so: zero = slay β , negative error code = not the moment π.
π SEE ALSO π
Kernel file ./drivers/mtd/mtdcore.c is the spot β and hereβs the whole friend group:
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_get_databytes(9)mtd_ooblayout_set_databytes(9)mtd_ooblayout_count_freebytes(9)mtd_ooblayout_count_eccbytes(9)mtd_kmalloc_up_to(9)
xoxo, the ./drivers/mtd source/version girlies β October 2026 edition, bye 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