diff options
author | 2011-04-04 11:24:45 +0000 | |
---|---|---|
committer | 2011-04-04 11:24:45 +0000 | |
commit | ea41019a58dae845dadbc4f52fa380ab7510fcb1 (patch) | |
tree | 2b2e5d37911f0c43b0e30d92ef846fcec987d57b /lib/libc | |
parent | Dump some useless calls to dhclient-script. i.e. MEDIUM, PREINIT, (diff) | |
download | wireguard-openbsd-ea41019a58dae845dadbc4f52fa380ab7510fcb1.tar.xz wireguard-openbsd-ea41019a58dae845dadbc4f52fa380ab7510fcb1.zip |
New unified allocator of kernel memory.
We've reached the point where we have a dozen allocators that all do more
or less the same thing, but slightly different, with slightly different
semantics, slightly different default behaviors and default behaviors that
most callers don't expect or want. A random sample on the last general
hackathon showed that no one could explain what all the different allocators
did. And every time someone needed to do something slightly different a
new allocator was written.
Unify everything. One single function to allocate multiples of PAGE_SIZE
kernel memory. Four arguments: size, how va is allocated, how pa is allocated
and misc parameters. Same parameters are passed to the free function so that
we don't need to guess what's going on.
Functions are currently unused, we'll do one thing at a time to avoid a
giant commit.
looked at by lots of people, deraadt@ and beck@ are yelling at me to commit.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions