match_wildcard(9)
πΈ match_wildcard(9) β the <stdlib.h> glow-up your kernel parser deserves πΈ
okay so bestie, this one lives in the Kernel API Manual, section 9 β it's the vibe-check function of ./lib/parser.c and honestly? she's iconic.
β¨ NAME β¨
match_wildcard β parse if a string matches a given wildcard pattern π
π SYNOPSIS π
bool match_wildcard (const char *pattern , const char *str );
π¦ ARGUMENTS π¦
patternβ the wildcard pattern, aka the rules of the game πstrβ the string to be parsed, aka the contestant π
π DESCRIPTION π
okay so here's the tea: you parse the string str to check if it matches the wildcard pattern pattern. no cap, that's the whole job. π«Ά
The pattern may contain two types of wildcards:
- (the manpage's bullet here is literally empty β that's not me being lazy, the source really does just leave these two bullets blank π)
- (and this second one is empty too. two bullet points, zero words. it's giving mysterious main character energy π)
ngl, the two wildcard types are the ones this page is supposed to describe, but the bullets shipped empty in the original. I'm not about to make up behaviour that isn't in the source β so: two types, described nowhere, and that's the version you're getting. π
π RETURN π
If str matches pattern, you get true. Otherwise? false. That's it, that's the whole mood. β¨
π₯ SEE ALSO π₯
All her siblings in the Kernel file ./lib/parser.c β go say hi, they're all lowkey obsessed with parsing:
match_one(9)match_token(9)match_number(9)match_u64int(9)match_int(9)match_uint(9)match_u64(9)match_octal(9)match_hex(9)match_strlcpy(9)match_strdup(9)
okay that's the whole page bestie, you ate that π π§
π cute sign-off: this little gem comes from the./libcorner of the kernel, dated October 2026, and yes β the section number in the corner ismatch_wildcard(9)because she's a section-9 girlie fr fr. ππ
π¦ 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