tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using proplist ioctl's from within the kernel



On Thu, 25 Mar 2010, Matthias Drochner wrote:


jeanyves.migeon%free.fr@localhost said:
There should be some way to serialize/deserialize prop/plistref
objects  within the kernel, but I never found a solution. I suppose
you will have  to dig deeper than I did :/

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?


-------------------------------------------------------------------------
|   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  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index