hwmon_sanitize_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is the hwmon_sanitize_name(9) page from the Kernel API Manual 🫢 and the name is literally: hwmon_sanitize_name β€” swaps out any invalid characters in a hwmon name ✨

✨ SYNOPSIS ✨

char * hwmon_sanitize_name (const char *name );

πŸ’… ARGUMENTS πŸ’…

  • name β€” a NUL-terminated name 🫢

πŸŽ€ DESCRIPTION πŸŽ€

Okay so picture this: hwmon_sanitize_name allocates a new string, and in that shiny new string any invalid characters get replaced by an underscore _ πŸ’…. It's giving cleanup era but for characters, no cap.

bestie PSA 🚨: it is the responsibility of the caller to release the memory. Like, the function hands you the new string and you gotta handle the cleanup yourself, periodt.

It returns the newly allocated name, or ERR_PTR on error 😭. That's the whole vibe check.

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ this page's source/version line is ./drivers/hwmon, dated October 2026, and the page is hwmon_sanitize_name(9). byeee πŸ’œ

πŸ“¦ where this page comes from