match_pattern(9)
πΈ 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 π
- Kernel file
./fs/smb/server/misc.cβ peepconvert_to_nt_pathname(9)andksmbd_extract_sharename(9)too π«Ά
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
- 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