tomoyo_numscan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet tomoyo_numscan(9) from the Kernel API Manual. it's basically sscanf() but it stores the length of a decimal integer value. iconic behavior, honestly. ✨


✨ SYNOPSIS ✨

bool tomoyo_numscan (const char *str , const char *head , int *width ,
       const char tail );

πŸŽ€ ARGUMENTS πŸŽ€

  • str β€” the string to scan. literally the string we're looking at. πŸ’…
  • head β€” the leading string that must start with. (the prefix str has to match, bestie. 🫢)
  • width β€” pointer to an int for storing the length of a decimal integer value after head. πŸ“
  • tail β€” optional character that must match after a decimal integer value. πŸŽ€

🌸 DESCRIPTION 🌸

tomoyo_numscan() returns whether str starts with head and a decimal value follows head. that's the whole vibe check. it hands back a bool, and the width pointer is where the length of that decimal integer value gets stored. no cap. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

the page points you at the kernel file ./security/tomoyo/common.c, plus this whole friend group:


mwah πŸ’‹ cute little sign-off: this one comes from ./security/tomoyo, dated October 2026, and yes, the manual name is tomoyo_numscan(9). periodt. πŸŽ€

πŸ“¦ where this page comes from