mtd_ooblayout_get_eccbytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 β€” the mtd info 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:


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