mtd_ooblayout_set_eccbytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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, iykyk
  • nbytes β€” 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:


xoxo, the ./drivers/mtd source/version girlies β€” October 2026 edition, bye bestie πŸ’…πŸ«ΆπŸ’–

πŸ“¦ where this page comes from