nand_update_bbt(9)
π nand_update_bbt(9) β like, the Kernel API Manual page, bestie
okay so picture this: it's a nand_update_bbt moment, section 9 of the Kernel API Manual, and you're about to touch the bad block table. yes THAT bad block table. let's get into it π
β¨ NAME β¨
nand_update_bbt β update bad block table(s) π«Ά
πΈ SYNOPSIS πΈ
int nand_update_bbt (struct nand_chip *this , loff_t offs );
π¦ ARGUMENTS π¦
thisβ the NAND device π like, the whole vibe, your main character structoffsβ the offset of the newly marked block π (the fresh little block that just got marked)
β DESCRIPTION β
so the way this works is: the function updates the bad block table(s). that's it. that's the whole job. one function, updating the bad block table(s), no cap π β¨
ngl it's giving "small function, big responsibility" energy β it's literally the thing keeping your bad blocks accounted for π§
π SEE ALSO π
Kernel file ./drivers/mtd/nand/raw/nand_bbt.c β and bestie, the friend group here is huge, we're listing everyone, no skipping:
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)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)nand_markbad_bbt(9)
they all live together in ./drivers/mtd/nand/raw and honestly? iconic found-family situation ππ«Ά
and that's the page!! sign-off time: this cutie lives in ./drivers/mtd/nand/raw, the version stamp on it is October 2026, and the whole thing is filed under nand_update_bbt(9). 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