get_class_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_class_profile(9) β€” the class device profile vibe check πŸ’…

okay so bestie, welcome to the get_class_profile(9) manual page. This is the kernel API manual moment where we look at get_class_profile, and it's literally here to show the current profile for a class device. no cap. 🫢

✨ NAME ✨

get_class_profile β€” show the current profile for a class device

πŸ¦‹ SYNOPSIS πŸ¦‹

int get_class_profile (struct device *dev , enum platform_profile_option
       *profile );

🌸 ARGUMENTS 🌸

  • dev β€” the class device. That's the device we're checking on, main character energy and all. πŸ’–
  • profile β€” the profile to return. Like, hand over the current profile bestie, we're waiting. ✨

πŸ”₯ RETURN πŸ”₯

0 on success, -errno on failure.

so if it works you get 0, and if it doesn't you get a negative errno situation. that's the whole return vibe, periodt. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/acpi/platform_profile.c β€” and it's linked with all of these:


mwah πŸ’‹ this little icon lives at source/version ./drivers/acpi, dated October 2026. catch you in the kernel, bestie β€” stay slay and read your man pages. πŸŽ€πŸ’œ

πŸ“¦ where this page comes from