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)
Wed, Jun 17, 12:34 AM
Unknown Object (File)
Mon, Jun 15, 10:43 PM
Unknown Object (File)
Mon, Jun 15, 4:29 AM
Unknown Object (File)
Fri, Jun 12, 3:27 PM
Unknown Object (File)
Fri, Jun 5, 1:06 AM
Unknown Object (File)
May 26 2026, 1:39 PM
Unknown Object (File)
May 22 2026, 5:04 PM
Unknown Object (File)
May 21 2026, 4:14 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