match_pattern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is match_pattern from the Kernel API Manual β€” and it's literally here to compare a string with a pattern which might include wildcard '*' and '?'. πŸ¦‹

also, fair warning: there's a TODO in the house: TODO : implement consideration about DOS_DOT, DOS_QM and DOS_STAR. yes, that's a literal TODO, not me being dramatic 😭.


✨ SYNOPSIS ✨

int match_pattern (const char *str , size_t len , const char *pattern );

πŸŽ€ ARGUMENTS πŸŽ€

  • str β€” string to compare with a pattern. the one being matched, the main character of the operation πŸ‘‘
  • len β€” string length. the length number, periodt.
  • pattern β€” pattern string which might include wildcard '*' and '?'. it's giving β€œpattern vibe check” iykyk πŸ’…

πŸ’… RETURN πŸ’…

0 if pattern matched with the string, otherwise non zero value. so zero is the slay matched case, and non-zero is the β€œnope, not today” case πŸ”₯

🌈 SEE ALSO 🌈


and that's the whole page, bestie πŸ’– this one comes from ./fs/smb/server, dated October 2026, and it's literally match_pattern(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from