acpi_fan_speed_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to acpi_fan_speed_valid(9) from the Kernel API Manual β€” this is literally the page for β€œCheck if fan speed value is valid” βœ¨πŸ’…


✨ SYNOPSIS ✨

bool acpi_fan_speed_valid (u64 speed );

🫢 ARGUMENTS 🫢

  • speed β€” Speed value returned by the ACPI firmware. That’s the value getting the vibe check πŸ’…

πŸ’– DESCRIPTION πŸ’–

Check if the fan speed value returned by the ACPI firmware is valid. That’s the whole assignment, bestie ✨.

This function is necessary as ACPI firmware implementations can return 0xFFFFFFFF to signal that the ACPI fan does not support speed reporting. iykyk, that’s the β€œno speed reporting for you” placeholder 🫠.

Additionally, some buggy ACPI firmware implementations return a value larger than the 32-bit integer value defined by the ACPI specification when using placeholder values 😭. Such invalid values are also detected by this function. Not me trusting firmware, never πŸ’€.


πŸ”₯ RETURN πŸ”₯

True if the fan speed value is valid, false otherwise. That’s it β€” valid speed? iconic πŸ‘‘. Invalid? caught in 4K πŸ“Έ.


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/acpi/fan.h β€” go read it, bestie 🫢
  • acpi_fan_power_valid(9) β€” the other ACPI fan validity check, slay ✨

This cutie came from ./drivers/acpi, dated October 2026, and it’s the acpi_fan_speed_valid(9) manual page. Mwah, bye bestie πŸ’‹πŸŽ€

πŸ“¦ where this page comes from