check_short_pattern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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