On Fri, 31 Dec 2010, Jukka Ruohonen wrote:
On Fri, Dec 31, 2010 at 11:29:23AM +0100, Jean-Yves Migeon wrote:
Seems reasonable to me. We could have a more featureful binary later,
and just alias zzz(8) to it.
We have ready ioctl-facilities in sysmon's "sysmon_power.c". I believe it
was originally intended by the author that MD code should use the
sysmon_power_settype() function to register a "power-backend" (ACPI, APM, Xen,
PowerBook, and so on). Extending this idea seems like a plausible route.
Yes.
However, the current implementation is simply a text string with no
defined semantics. A back-end is able to set the value, and it can be
retrieved via the POWER_IOC_GET_TYPE ioctl, but otherwise nothing uses
the value.
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------