mtd_ooblayout_set_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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