mtd_ooblayou...nd_eccregion(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so like, this is mtd_ooblayout_find_eccregion β€” the little function whose whole personality is finding the ECC region that's attached to one specific ECC byte 🎯 she's a Kernel API Manual girlie, very official, very demure πŸ’…


🌸 SYNOPSIS 🌸

int mtd_ooblayout_find_eccregion (struct mtd_info *mtd , int eccbyte ,
       int *section , struct mtd_oob_region *oobregion );

πŸŽ€ ARGUMENTS πŸŽ€

  • mtd β€” the mtd info structure, like, the whole vibe context bestie 🌈
  • eccbyte β€” the byte we are searching for πŸ‘€ literally the main character of this search
  • section β€” a pointer where the section id is gonna get stored, so she can report back 🫢
  • oobregion β€” OOB region information, all the deets about the region ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk β€” she works exactly like mtd_ooblayout_find_region, no cap, except instead of a normal search she's hunting down one specific ECC byte 🧚 same energy, different target.

Returns zero on success, and a negative error code otherwise 😭 (so like, check your return value, bestie, fr fr).


πŸ‘‘ SEE ALSO πŸ‘‘

that's the whole friend group right there πŸ’–


mwah πŸ’‹ this lil page lives in ./drivers/mtd, stamped October 2026 β€” and it's signed off as mtd_ooblayou...nd_eccregion(9) because apparently we're all out here with truncated names, iykyk πŸ˜­πŸ’œ

πŸ“¦ where this page comes from