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
F167636482: D56958.id177628.diff
Sun, Aug 23, 9:32 AM
Unknown Object (File)
Fri, Aug 21, 9:44 AM
Unknown Object (File)
Wed, Aug 19, 7:31 AM
Unknown Object (File)
Tue, Aug 18, 4:54 PM
Unknown Object (File)
Sun, Aug 16, 7:02 PM
Unknown Object (File)
Sun, Aug 16, 10:03 AM
Unknown Object (File)
Tue, Aug 11, 11:47 PM
Unknown Object (File)
Sun, Aug 9, 4:04 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