sysfs_streq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 string
  • s2 β€” 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:


πŸ’– 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