tomoyo_file_matches_pattern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_file_matches_pattern(9) πŸ’–

okay bestie, this one is from the Kernel API Manual, and it's literally all about checking whether a filename matches a pattern β€” with no '/' character in the mix. it's giving very specific kernel-girl energy, and we're obsessed πŸŽ€


🌸 NAME 🌸

tomoyo_file_matches_pattern β€” pattern matching without the '/' character.


✨ SYNOPSIS ✨

bool tomoyo_file_matches_pattern (const char *filename , const char
       *filename_end , const char *pattern , const char *pattern_end );

πŸŽ€ ARGUMENTS πŸŽ€

  • filename β€” the start of the string you're checking. like, where the vibe check begins πŸ’…
  • filename_end β€” the end of the string you're checking. that's the cutoff, bestie.
  • pattern β€” the start of the pattern you're comparing against. the template, the blueprint, the moment.
  • pattern_end β€” the end of the pattern you're comparing against. closing tag energy ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: it returns true if filename matches pattern, and false otherwise. no cap, that's the whole plot 🫢


πŸ’… SEE ALSO πŸ’…

the kernel file in question is ./security/tomoyo/util.c, and the whole squad is:


xoxo πŸ’‹ your resident Unix girl is signing off for tomoyo_file_matches_pattern(9) β€” source/version line from ./security/tomoyo, dated October 2026 πŸŽ€πŸ«Άβœ¨

πŸ“¦ where this page comes from