check_short_pattern(9)
π check_short_pattern(9)
okay so bestie, welcome to check_short_pattern β section 9 of the Kernel API Manual, no big deal, just a little function living its best life in the kernel πΈ
β¨ NAME β¨
check_short_pattern β [GENERIC] check if a pattern is in the buffer π¦
π SYNOPSIS π
int check_short_pattern (uint8_t *buf , struct nand_bbt_descr *td );
π ARGUMENTS π
bufβ the buffer we're gonna search through, aka the lil haystack πtdβ the search pattern descriptor, aka the thing that tells us what we're looking for π
π DESCRIPTION π
So here's the tea: this one checks for a pattern at the given place. Literally that's it, that's the whole job π
It's used to search bad block tables and good / bad block identifiers β so if you're deep in NAND land, this is your girl.
It's the same as check_pattern, but with no optional empty check. that's the one difference, periodt.
π₯ SEE ALSO π₯
Kernel file ./drivers/mtd/nand/raw/nand_bbt.c, plus the whole friend group:
check_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)nand_markbad_bbt(9)
like, the whole squad fr fr π«Ά
and that's the page!! π§ this icon was brought to you by ./drivers/mtd/nand/raw, dated October 2026 β mwah, go slay your bad block tables babes πβ
π¦ 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