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 Fri, 26 Mar 2010, haad wrote:

I think it should be avoided at all costs. With proplists, you give up
and you create a lot of overhead. This is acceptable for kernel-user
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   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at |
| Kernel Developer |                          | pgoyette at  |

Home | Main Index | Thread Index | Old Index