sysfs_match_string(9)
π 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 π
memdup_array_user(9)vmemdup_array_user(9)strscpy(9)strscpy_pad(9)mem_is_zero(9)memzero_explicit(9)kbasename(9)strtomem_pad(9)strtomem(9)memtostr(9)memtostr_pad(9)memset_after(9)memset_startat(9)str_has_prefix(9)strstarts(9)strends(9)
π 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
- 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