Bitstring(9) in kernel.
Maxime Henrion
mux at freebsd.org
Mon Mar 15 07:02:49 PST 2004
Dag-Erling Sm?rgrav wrote:
> Pawel Jakub Dawidek <pjd at FreeBSD.org> writes:
> > Ok, bitstring(9) is broken for kernel use atm, because leak of calloc()
> > function. What we should do about it?
>
> No, it isn't broken. You just have to use bitstr_size() to figure out
> how much space it needs and do the alloc yourself.
That is, reimplement bit_alloc(). This makes 0 sense, we should indeed
fix bit_alloc() as Pawel suggested.
Cheers,
Maxime
More information about the freebsd-arch
mailing list