Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2017 11:28:43 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Sebastian Huber <sebastian.huber@embedded-brains.de>
Cc:        FreeBSD <freebsd-hackers@freebsd.org>
Subject:   Re: Linux gen_pool allocator replacement?
Message-ID:  <20170511082843.GU1622@kib.kiev.ua>
In-Reply-To: <591405E1.1000204@embedded-brains.de>
References:  <5912D448.5060201@embedded-brains.de> <20170510091946.GT1622@kib.kiev.ua> <591405E1.1000204@embedded-brains.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 11, 2017 at 08:34:09AM +0200, Sebastian Huber wrote:
> Thanks for the hint to vmem(9). There seems to be already a 
> driver-specific support using blist for gen_pool:
> 
> https://github.com/freebsd/freebsd/blob/master/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h#L190

I see. Just a note, this is rather naive and lock-heavy comparing with
the caching and streamlined vmem(9). OTOH, the code seems to be from the
time when we did not have vmem(9) ported.



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