check_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the Kernel API Manual page for check_create - [GENERIC] create and write bbt(s) if necessary ✨.


✨ SYNOPSIS ✨

int check_create (struct nand_chip *this , uint8_t *buf , struct
       nand_bbt_descr *bd );

πŸŽ€ ARGUMENTS πŸŽ€

  • this β€” the NAND device. literally the device we're working with 🫢
  • buf β€” temporary buffer, just a lil scratch space 😭
  • bd β€” descriptor for the good/bad block search pattern, the vibe check for blocks πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: check_create checks the results of the previous call to read_bbt and creates / updates the bbt(s) if necessary. no cap ✨.

Creation is necessary if no bbt was found for the chip/device. Update is necessary if one of the tables is missing or the version nr. of one table is less than the other. periodt πŸ’….


🌈 SEE ALSO 🌈

Kernel file ./drivers/mtd/nand/raw/nand_bbt.c has the whole squad: 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), 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), nand_markbad_bbt(9).


okay bye bestie πŸ’– this iconic page came from ./drivers/mtd/nand/raw, dated October 2026 β€” check_create(9) out βœ¨πŸ¦‹

πŸ“¦ where this page comes from