Date: Wed, 10 May 2017 10:50:16 +0200 From: Sebastian Huber <sebastian.huber@embedded-brains.de> To: FreeBSD <freebsd-hackers@freebsd.org> Subject: Linux gen_pool allocator replacement? Message-ID: <5912D448.5060201@embedded-brains.de>
next in thread | raw e-mail | index | archive | help
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@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5912D448.5060201>
