match_wildcard(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:


okay that's the whole page bestie, you ate that πŸ’…πŸ§š

🌟 cute sign-off: this little gem comes from the ./lib corner of the kernel, dated October 2026, and yes β€” the section number in the corner is match_wildcard(9) because she's a section-9 girlie fr fr. πŸ’œπŸŽ€
πŸ“¦ where this page comes from