devm_hwmon_sanitize_name(9)
π 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 π
- the kernel file
./drivers/hwmon/hwmon.cπ hwmon_device_register_with_groups(9)hwmon_device_register_with_info(9)hwmon_device_register_for_thermal(9)hwmon_device_register(9)hwmon_device_unregister(9)devm_hwmon_device_register_with_groups(9)devm_hwmon_device_register_with_info(9)hwmon_sanitize_name(9)
okay bye bestie π«Ά β source/version spot: ./drivers/hwmon; date: October 2026; manual: devm_hwmon_sanitize_name(9). mwah π
π¦ 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