Linux gen_pool allocator replacement?

Konstantin Belousov kostikbel at gmail.com
Thu May 11 08:28:57 UTC 2017


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.


More information about the freebsd-hackers mailing list