sysfs_match_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sysfs_match_string(9) β€” the kernel API manual, but make it make sense πŸ’…

okay so bestie, this is the page for sysfs_match_string, from the Kernel API Manual β€” yes, that's the manual name, we're folding it in right here at the top like a little name tag πŸŽ€


✨ NAME ✨

sysfs_match_string β€” matches given string in an array πŸ¦‹


✨ SYNOPSIS ✨

sysfs_match_string (_a , _s );

✨ ARGUMENTS ✨

  • _a β€” the array of strings 🌸 like, the whole lineup, that's _a
  • _s β€” the string to match with 🎯 the one you're hunting for in the array

✨ DESCRIPTION ✨

okay so it's a helper for __sysfs_match_string 🫢 and here's the vibe: it calculates the size of _a automatically. no cap, you don't have to pass the length in yourself, it just figures it out πŸ’… iconic behaviour, honestly.


✨ SEE ALSO ✨

kernel file ./include/linux/string.h β€” and literally the whole friend group it hangs out with πŸŽ€


🌈 sign-off 🌈

that's the whole page, bestie β€” source lives in ./include/linux, and this edition is dated October 2026. go read some string.h and slay πŸ‘‘πŸ’–

πŸ“¦ where this page comes from