Page MenuHomeFreeBSD

acpi_powerres: Interface for getting D-state of devices from userspace
Needs ReviewPublic

Authored by obiwac on May 12 2026, 10:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 19, 6:57 AM
Unknown Object (File)
Thu, Jul 16, 2:44 AM
Unknown Object (File)
Wed, Jul 8, 6:13 PM
Unknown Object (File)
Tue, Jul 7, 2:25 AM
Unknown Object (File)
Jun 17 2026, 12:34 AM
Unknown Object (File)
Jun 15 2026, 10:43 PM
Unknown Object (File)
Jun 15 2026, 4:29 AM
Unknown Object (File)
Jun 12 2026, 3:27 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Currently, there's no way to do this on FreeBSD.

TODO:

  • Need to make sure that the ACPI_STATE_Dx constants are actually available to userspace.
  • Would like to base this on actual D-state getting instead of what our buggy D-state code things the current device D-state is.

Sponsored by: The FreeBSD Foundation

Test Plan

I will eventually update devinfo(8) with a switch to print out the D-state of ACPI devices, which will use this interface.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73007
Build 69890: arc lint + arc unit