Add descriptions for the sysctls.
MFC after: 1 day
This commit is contained in:
parent
7a20dc58a8
commit
e4515dd568
@ -371,27 +371,31 @@ acpi_battery_init(void)
|
||||
sysctl_ctx_init(&acpi_battery_sysctl_ctx);
|
||||
acpi_battery_sysctl_tree = SYSCTL_ADD_NODE(&acpi_battery_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(sc->acpi_sysctl_tree), OID_AUTO, "battery", CTLFLAG_RD,
|
||||
0, "");
|
||||
0, "battery status and info");
|
||||
SYSCTL_ADD_PROC(&acpi_battery_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
|
||||
OID_AUTO, "life", CTLTYPE_INT | CTLFLAG_RD,
|
||||
&acpi_battery_battinfo.cap, 0, acpi_battery_sysctl, "I", "");
|
||||
&acpi_battery_battinfo.cap, 0, acpi_battery_sysctl, "I",
|
||||
"percent capacity remaining");
|
||||
SYSCTL_ADD_PROC(&acpi_battery_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
|
||||
OID_AUTO, "time", CTLTYPE_INT | CTLFLAG_RD,
|
||||
&acpi_battery_battinfo.min, 0, acpi_battery_sysctl, "I", "");
|
||||
&acpi_battery_battinfo.min, 0, acpi_battery_sysctl, "I",
|
||||
"remaining time in minutes");
|
||||
SYSCTL_ADD_PROC(&acpi_battery_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
|
||||
OID_AUTO, "state", CTLTYPE_INT | CTLFLAG_RD,
|
||||
&acpi_battery_battinfo.state, 0, acpi_battery_sysctl, "I", "");
|
||||
&acpi_battery_battinfo.state, 0, acpi_battery_sysctl, "I",
|
||||
"current status flags");
|
||||
SYSCTL_ADD_PROC(&acpi_battery_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
|
||||
OID_AUTO, "units", CTLTYPE_INT | CTLFLAG_RD,
|
||||
NULL, 0, acpi_battery_units_sysctl, "I", "");
|
||||
NULL, 0, acpi_battery_units_sysctl, "I", "number of batteries");
|
||||
SYSCTL_ADD_INT(&acpi_battery_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
|
||||
OID_AUTO, "info_expire", CTLFLAG_RD | CTLFLAG_RW,
|
||||
&acpi_battery_info_expire, 0, "");
|
||||
&acpi_battery_info_expire, 0,
|
||||
"time in seconds until info is refreshed");
|
||||
|
||||
acpi_batteries_initted = TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user