check_pattern(9)
π check_pattern(9) β ok so bestie, welcome to the Kernel API Manual π
Like, hi. You're reading check_pattern(9), and honestly? She's a little legend. Let's get into it. β¨
πΈ NAME πΈ
check_pattern β [GENERIC] check if a pattern is in the buffer π¦
β SYNOPSIS β
int check_pattern (uint8_t *buf , int len , int paglen , struct
nand_bbt_descr *td );
That's the whole vibe. Four args, one int coming back at you. No cap. π
π ARGUMENTS π
bufβ the buffer to search π like, the actual haystack, and yes the pattern is the needle, we're doing this metaphor, deal with it.lenβ the length of buffer to search π how far intobufwe're allowed to snoop.paglenβ the pagelength π« that's it, that's the whole description, she's a woman of few words and we respect her.tdβ search pattern descriptor π thestruct nand_bbt_descr *that tells us what we're even looking for. main character energy fr fr.
π§ DESCRIPTION π§
Ok so here's the tea: check_pattern checks for a pattern at the given place. Simple. Iconic. To the point. π«Ά
She's used to search bad block tables and good / bad block identifiers. That's the whole job and she ate. π
no extra lore, bestie β that's genuinely all the manpage gives us, and we are not out here inventing behaviour. π
π SEE ALSO π
The whole friend group π (all from the Kernel file ./drivers/mtd/nand/raw/nand_bbt.c):
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)nand_markbad_bbt(9)
mwah π that's the page. sourced straight from ./drivers/mtd/nand/raw, stamped October 2026, and yeah she's filed under check_pattern(9) in the Kernel API Manual. go read the source, ily, 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