Skip site navigation (1)Skip section navigation (2)
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=20
FreeBSD. This driver uses the gen_pool allocator

http://elixir.free-electrons.com/linux/latest/source/include/linux/genall=
oc.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=20
cannot use UMA since the pool management data must reside outside the=20
managed memory area. One use case in this driver seems just to manage a=20
range of integers, so no actual memory allocation. For this I could=20
probably use UNR(9), but a general gen_pool allocator replacement would=20
be nice.

--=20
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=C3=A4ftliche Mitteilung im Sinne des EHUG=
.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5912D448.5060201>