STRUCT MTD_ECC_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct mtd_ecc_stats(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” today’s main character is struct mtd_ecc_stats, and it is literally the error correction stats glow-up πŸŽ€βœ¨

πŸ’– NAME πŸ’–

struct mtd_ecc_stats β€” error correction stats. no cap, that’s the whole vibe πŸ’…

✨ SYNOPSIS ✨

struct mtd_ecc_stats {
    __u32 corrected;
    __u32 failed;
    __u32 badblocks;
    __u32 bbtblocks;
};

πŸŽ€ Members πŸŽ€

  • corrected β€” number of corrected bits. she’s out here fixing things and counting every single one πŸ’…
  • failed β€” number of uncorrectable errors. 😭 not the failed girlies β€” these are the errors error correction could not save.
  • badblocks β€” number of bad blocks in this partition. literally flagged, bestie 🚩
  • bbtblocks β€” number of blocks reserved for bad block tables. reserved seating for the bad block tables πŸ‘‘βœ¨

🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/mtd/mtd-abi.h
  • struct mtd_write_req(9)
  • struct mtd_read_req_ecc_stats(9)
  • struct mtd_read_req(9)

mwah πŸ’‹ this iconic little page comes from ./include/uapi/mtd, October 2026, and it’s literally struct mtd_ecc_stats(9) β€” stay corrected, bestie 🫢✨

πŸ“¦ where this page comes from