mtd_ooblayout_set_bytes(9)
π NAME π
okay bestie, this is the mtd_ooblayout_set_bytes(9) page from the Kernel API Manual β¨ β and it's literally about one thing: putting OOB bytes into the oob buffer π.
mtd_ooblayout_set_bytes β put OOB bytes into the oob buffer πΎ
β¨ SYNOPSIS β¨
int mtd_ooblayout_set_bytes (struct mtd_info *mtd , const u8 *buf , u8
*oobbuf , int start , int nbytes , int (*iter)(struct mtd_info *, int
section, struct mtd_oob_region *oobregion) );
π ARGUMENTS π
mtdβ the mtd info structure, aka the main character of this call πbufβ source buffer to get OOB bytes from, the stash of data πoobbufβ the OOB buffer, where the bytes are headed πstartβ first OOB byte to set, the starting point bestie β¨nbytesβ number of OOB bytes to set, the count fr fr π’iterβ section iterator, no cap π
π DESCRIPTION π
okay so mtd_ooblayout_set_bytes fills the OOB buffer with the data provided in buf πΎ. The category β ECC or free β is selected by passing the appropriate iterator. That's the whole move β¨.
It returns zero on success, and a negative error code otherwise π«Ά. That's it, that's the tea β.
π SEE ALSO π
Kernel file: ./drivers/mtd/mtdcore.c πΎ β and here are all the linked besties:
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_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)
okay that's literally it, bestie π«Ά β source/version: ./drivers/mtd; date: October 2026; page: mtd_ooblayout_set_bytes(9). byeeee π
β¨
π¦ 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