Page MenuHomeFreeBSD

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

Authored by obiwac on Tue, May 12, 10:33 AM.
Tags
None
Referenced Files
F157164238: D56958.diff
Mon, May 18, 10:36 PM
F157154636: D56958.diff
Mon, May 18, 8:23 PM
F157047482: D56958.diff
Mon, May 18, 3:12 AM
Unknown Object (File)
Sun, May 17, 10:33 PM
Unknown Object (File)
Fri, May 15, 1:13 AM
Unknown Object (File)
Wed, May 13, 12:40 AM
Unknown Object (File)
Wed, May 13, 12:33 AM
Unknown Object (File)
Tue, May 12, 5:44 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