mtd_ooblayout_get_eccbytes(9)
π¦ mtd_ooblayout_get_eccbytes π¦
okay so welcome to the Kernel API Manual, bestie β this page is all about mtd_ooblayout_get_eccbytes, and it's literally the move for pulling ECC bytes out of the OOB buffer. π
πΈ NAME πΈ
mtd_ooblayout_get_eccbytes β extract ECC bytes from the oob buffer.
β¨ SYNOPSIS β¨
int mtd_ooblayout_get_eccbytes (struct mtd_info *mtd , u8 *eccbuf ,
const u8 *oobbuf , int start , int nbytes );
π«Ά ARGUMENTS π«Ά
mtdβ themtdinfo structure. π§eccbufβ destination buffer to store ECC bytes. πoobbufβ the OOB buffer.startβ first ECC byte to retrieve.nbytesβ number of ECC bytes to retrieve.
π DESCRIPTION π
It works like mtd_ooblayout_get_bytes, except it acts on ECC bytes. That's the whole flex. β¨
Returns zero on success, a negative error code otherwise. No cap. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/mtd/mtdcore.c. Also check out:
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_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)
okay that's the page, bestie! source/version: ./drivers/mtd Β· date: October 2026 Β· page: mtd_ooblayout_get_eccbytes(9). mwah πβ¨
π¦ 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