STRUCT PLATFORM_PROFILE_OPS(9)
π struct platform_profile_ops(9) π
okay bestie, welcome to the Kernel API Manual entry for struct platform_profile_ops. no cap, this little struct is the operations table for platform profiles, and it's giving "small struct, big main character energy." β¨
πΈ NAME πΈ
struct platform_profile_ops β platform profile operations. that's the whole vibe, periodt. π
β¨ SYNOPSIS β¨
struct platform_profile_ops {
int (*probe)(void *drvdata, unsigned long *choices);
int (*hidden_choices)(void *drvdata, unsigned long *choices);
int (*profile_get)(struct device *dev, enum platform_profile_option
*profile);
int (*profile_set)(struct device *dev, enum platform_profile_option
profile);
};
lowkey just a bundle of callbacks, but make it fashion. π
π«Ά Members π«Ά
probeβ callback to setup the choices available to the new class device. important caveat, bestie: these choices will only be enforced when setting a new profile, not when getting the current one. so don't expect them on the get side. πhidden_choicesβ callback to setup choices that are not visible to the user but can be set by the driver. sneaky little choices, iykyk. πprofile_getβ callback that will be called when showing the current platform profile insysfs. literally the "show me what's happening" callback. πΈprofile_setβ callback that will be called when storing a new platform profile insysfs. this is the "new profile, who dis" path. π
π SEE ALSO π
- Kernel file
./include/linux/platform_profile.hβ go peek, bestie. it's right there. π¦
mwah π β this page came from ./include/linux, dated October 2026, and it's filed under struct platform_profile_ops(9). slay. π
π¦ 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