platform_profile_register(9)
π platform_profile_register(9) β Kernel API Manual, but make it bestie π
πΈ NAME πΈ
platform_profile_register β creates and registers a platform profile class device. Thatβs the whole assignment, and it lowkey slays π
β¨
β¨ SYNOPSIS β¨
okay so hereβs the exact signature, bestie β character-for-character, no cap:
struct device * platform_profile_register (struct device *dev , const char *name , void *drvdata , const struct platform_profile_ops *ops );
π ARGUMENTS π
devβ parent device π«Άnameβ name of the class device π·οΈdrvdataβ driver data that will be attached to the class device πopsβ platform profileβs mandatory operations (mandatory, bestie π)
π RETURN π
On success you get a pointer to the new class device β¨; on failure you get ERR_PTR π. Thatβs the whole return vibe β pointer or ERR_PTR, periodt.
π¦ SEE ALSO π¦
Kernel file: ./drivers/acpi/platform_profile.c β hereβs the whole squad, iykyk:
_commmon_choices_show(9)_store_class_profile(9)_notify_class_profile(9)get_class_profile(9)name_show(9)choices_show(9)profile_show(9)profile_store(9)_aggregate_choices(9)_remove_hidden_choices(9)platform_profile_choices_show(9)_aggregate_profiles(9)_store_and_notify(9)platform_profile_show(9)platform_profile_store(9)platform_profile_notify(9)platform_profile_cycle(9)platform_profile_remove(9)devm_platform_profile_register(9)
source/version check: this page lives under ./drivers/acpi, itβs dated October 2026, and the page is platform_profile_register(9) β mwah, bye bestie π«Άπ
π¦ 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