[patch] extending alloc_unr(9) to allocate specific unit numbers

Brooks Davis brooks at freebsd.org
Mon Jun 21 21:16:03 UTC 2010


On Mon, Jun 21, 2010 at 07:25:10PM +0000, Poul-Henning Kamp wrote:
> In message <201006211109.11653.jhb at freebsd.org>, John Baldwin writes:
> >On Saturday 19 June 2010 11:48:22 am Jaakko Heinonen wrote:
> 
> >> As an example here is md(4) converted to use
> >> alloc_unr() / alloc_unr_specific():
> >> 
> >> 	http://people.freebsd.org/~jh/patches/md-alloc_unr.diff
> >
> >This sounds useful to me.  Perhaps ask phk@?
> 
> My only worry is that if people start to use this indiscriminantly to
> store random collections of numbers, then it is far from the optimal
> data structure for it.
> 
> Other than that: go for it.

IIRC this is the one missing feature we need to convert if_clone to unr
so I support it.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100621/b0052de5/attachment.pgp


More information about the freebsd-hackers mailing list