Linux gen_pool allocator replacement?
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed May 10 09:10:29 UTC 2017
Hello,
I try currently to port a BSD licensed Linux network interface driver to
FreeBSD. This driver uses the gen_pool allocator
http://elixir.free-electrons.com/linux/latest/source/include/linux/genalloc.h
for example here
https://github.com/torvalds/linux/blob/master/drivers/soc/fsl/qbman/qman.c#L2707
Does someone know if something similar exits in the FreeBSD kernel? I
cannot use UMA since the pool management data must reside outside the
managed memory area. One use case in this driver seems just to manage a
range of integers, so no actual memory allocation. For this I could
probably use UNR(9), but a general gen_pool allocator replacement would
be nice.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the freebsd-hackers
mailing list