nand_create_...lock_pattern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nand_create_badblock_pattern(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding time now 🫢


✨ NAME ✨

nand_create_badblock_pattern β€” [INTERN] creates a BBT descriptor structure πŸŽ€


🌸 SYNOPSIS 🌸

int nand_create_badblock_pattern (struct nand_chip *this );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • this β€” the NAND chip you're making a descriptor for. that's the whole vibe, she's the main character πŸ’…

⭐ DESCRIPTION ⭐

okay so real talk: this function allocates and initializes a nand_bbt_descr for BBM detection, and it does it based on the properties of this. slay.

the new descriptor gets stored in this->badblock_pattern. so like, heads up bestie πŸ‘‘

this->badblock_pattern should be NULL when you pass it to this function. fr fr. not a suggestion, it's literally in the docs 😭

🌈 SEE ALSO 🌈

kernel file ./drivers/mtd/nand/raw/nand_bbt.c β€” and the whole squad, no cap:

like, that's the entire friend group, and honestly? obsessed πŸ”₯


that's the whole page bestie, you ate that πŸ“βœ¨

source: ./drivers/mtd/nand/raw Β· dated: October 2026 β€” mwah, bye bye! πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from