nand_markbad_bbt(9)
πΈ nand_markbad_bbt(9) β the Kernel API Manual, bestie edition πΈ
okay so picture this: it's a kernel API manual page, the function is nand_markbad_bbt, and it lives in the NAND Interface corner of the world. this is its whole personality, and honestly? iconic. π
β¨ NAME β¨
nand_markbad_bbt β girl help, it's literally the [NAND Interface] function that marks a block bad in the BBT π no cap, that's the entire job description.
π¦ SYNOPSIS π¦
int nand_markbad_bbt (struct nand_chip *this , loff_t offs );
that's it. that's the whole summoning spell. two arguments, one int coming back at you, main character energy fr fr β¨
π ARGUMENTS π
thisβ the NAND chip object π«Ά like, the actual chip you're working with. your little guy.offsβ the offset of the bad block πΈ that's the address of the block we're calling out.
ngl this is a short page, bestie β but that's because it knows exactly what it is. minimal, focused, and still ate. π
π SEE ALSO π
the whole friend group, gathered for the group chat π§ β these all live in the kernel file ./drivers/mtd/nand/raw/nand_bbt.c:
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_badblock_pattern(9)nand_create_bbt(9)nand_isreserved_bbt(9)nand_isbad_bbt(9)
like, that's the whole underground scene of nand_bbt.c β go read all of them, iykyk π¦
and that's the page, bestie!! this little gem comes from the source/version <purple>./drivers/mtd/nand/raw</purple>, dated October 2026 β yes, it's from the future, and it still slays. periodt. πππ
π¦ 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