tech-kern archive

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

Re: aibs(4): ASUSTeK AI Booster (ACPI ATK0110) hardware monitor with limit support



On 31.12.09 10:36, Jukka Ruohonen wrote:
>>>> +     as = malloc(sizeof(*as) * n, M_DEVBUF, M_NOWAIT | M_ZERO);
>>>
>>> I reckon that there is no reason to prefer malloc(9) instead of kmem(9).
>>
>> I didn't use kmem(9) since that would require knowing the size of the
>> structure on kmem_free(9).
> 
> Ah yes. The size (or 'n') could be recorded, but I am not sure if it is
> worth the cause.

In the long run malloc(9) will be replaced by kmem(9).



Home | Main Index | Thread Index | Old Index