Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2004 16:02:48 +0100
From:      Maxime Henrion <mux@freebsd.org>
To:        Dag-Erling Sm?rgrav <des@des.no>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Bitstring(9) in kernel.
Message-ID:  <20040315150248.GL35475@elvis.mu.org>
In-Reply-To: <xzpish6f9hb.fsf@dwp.des.no>
References:  <20040315143123.GB8930@darkness.comp.waw.pl> <xzpish6f9hb.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Sm?rgrav wrote:
> Pawel Jakub Dawidek <pjd@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



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