tech-kern archive

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

Re: kmem API to allocate arrays



campbell+netbsd-tech-kern%mumble.net@localhost (Taylor R Campbell) writes:

>Initially I was reluctant to do that because (a) we don't even have a
>kmem_realloc, perhaps for some particular reason, and (b) it requires
>an extra parameter for the old size.  But I don't know any particular
>reason in (a), and perhaps (b) not so bad after all.  Here's a draft:

Reallocation is usually a reason for memory fragmentation. I would
rather try to avoid it instead of making it easier.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index