On Fri, 26 Mar 2010, haad wrote:

I think it should be avoided at all costs. With proplists, you give up
type
safety
and you create a lot of overhead. This is acceptable for kernel-user
interfaces
in some cases but not within the kernel.

So would it be appropriate for me to expose sysmon_envsys's "global mutex"
and its device list in order for acpi_apm to scan for battery sensors and
A/C adapters?


This is wrong and should be avoided IMHO.

Well, as it turns out, both the global mutex and the device list are already exposed, so it is a rather trivial task for acpi_apm.c to scan the device list.


-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS 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  |
-------------------------------------------------------------------------

Reply via email to