sysfs_streq(9)
πΈ NAME πΈ
okay bestie, welcome to sysfs_streq(9) from the Kernel API Manual β the function that returns true if strings are equal, modulo trailing newline. β¨
π SYNOPSIS π
bool sysfs_streq (const char *s1 , const char *s2 );
π ARGUMENTS π
s1β one strings2β another string
β¨ DESCRIPTION β¨
This routine returns true iff β thatβs βif and only if,β bestie β two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. π«Ά
Itβs geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines. no cap, thatβs literally the whole vibe. π
π¦ SEE ALSO π¦
go check these cuties too:
- Kernel file
./lib/string_helpers.cstring_get_size(9) parse_int_array_user(9)string_unescape(9)string_escape_mem(9)kasprintf_strarray(9)kfree_strarray(9)skip_spaces(9)strim(9)match_string(9)__sysfs_match_string(9)strreplace(9)memcpy_and_pad(9)
π and thatβs the page, bestie! this one comes from source/version ./lib, dated October 2026, and itβs all about sysfs_streq(9) β periodt. π
π¦ 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