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
F159679880: D56958.id177628.diff
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)
Tue, May 26, 1:39 PM
Unknown Object (File)
Fri, May 22, 5:04 PM
Unknown Object (File)
Thu, May 21, 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