nand_create_...lock_pattern(9)
π 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_patternshould beNULLwhen 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:
check_pattern(9)check_short_pattern(9)add_marker_len(9)read_bbt(9)read_abs_bbt(9)scan_read_oob(9)read_abs_bbts(9)create_bbt(9)search_bbt(9)search_read_bbts(9)get_bbt_block(9)mark_bbt_block_bad(9)write_bbt(9)nand_memory_bbt(9)check_create(9)nand_update_bbt(9)mark_bbt_region(9)verify_bbt_descr(9)nand_scan_bbt(9)nand_create_bbt(9)nand_isreserved_bbt(9)nand_isbad_bbt(9)nand_markbad_bbt(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms