Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Feb 2003 20:26:34 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Jeff Roberson <jroberson@chesapeake.net>, Peter Wemm <peter@wemm.org>, arch@FreeBSD.ORG
Subject:   Re: New kernel allocation API
Message-ID:  <xzpr8amr0k5.fsf@flood.ping.uio.no>
In-Reply-To: <Pine.BSF.4.21.0302051042480.97117-100000@InterJet.elischer.org> (Julian Elischer's message of "Wed, 5 Feb 2003 10:43:38 -0800 (PST)")
References:  <Pine.BSF.4.21.0302051042480.97117-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer <julian@elischer.org> writes:
> I know several consumers where the size is not known or would be
> expensive to calculate on free.

Well then,

    void kfree(void *va, size_t size, struct malloc_type *type);
    void kfree_nosize(void *va, struct malloc_type *type);

where the former checks that the size is correct, while the latter
doesn't.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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