check_pattern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 into buf we'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 πŸ‘‘ the struct 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):


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