summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_socket.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-11-21 01:44:06 +0000
committerdlg <dlg@openbsd.org>2016-11-21 01:44:06 +0000
commitff77302977a2768263ba8b94c6733be6a51bdb42 (patch)
tree0c7a2a6dec48e23f48af71506950b14115f0756c /sys/kern/sys_socket.c
parentRemove some old code that isn't needed anymore. (diff)
downloadwireguard-openbsd-ff77302977a2768263ba8b94c6733be6a51bdb42.tar.xz
wireguard-openbsd-ff77302977a2768263ba8b94c6733be6a51bdb42.zip
let pool page allocators advertise what sizes they can provide.
to keep things concise i let the multi page allocators provide multiple sizes of pages, but this feature was implicit inside pool_init and only usable if the caller of pool_init did not specify a page allocator. callers of pool_init can now suplly a page allocator that provides multiple page sizes. pool_init will try to fit 8 items onto a page still, but will scale its page size down until it fits into what the allocator provides. supported page sizes are specified as a bit field in the pa_pagesz member of a pool_allocator. setting the low bit in that word indicates that the pages can be aligned to their size.
Diffstat (limited to 'sys/kern/sys_socket.c')
0 files changed, 0 insertions, 0 deletions