devm_hwmon_sanitize_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to devm_hwmon_sanitize_name(9) β€” straight outta the Kernel API Manual ✨ This one is literally the resource-managed twin of hwmon_sanitize_name() πŸ’…

✨ SYNOPSIS ✨

char * devm_hwmon_sanitize_name (struct device *dev , const char *name
       );

🫢 ARGUMENTS 🫢

  • dev β€” the device you're allocating memory for, bestie πŸŽ€
  • name β€” a NUL-terminated name πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

It allocates a shiny new string, and any invalid characters get swapped out for an underscore (_) 🌸

You get the newly allocated name back, or ERR_PTR if there's an error 😭 no cap.

🌈 SEE ALSO 🌈


okay bye bestie 🫢 β€” source/version spot: ./drivers/hwmon; date: October 2026; manual: devm_hwmon_sanitize_name(9). mwah πŸ’‹

πŸ“¦ where this page comes from