I like riastradh's kmem/pool explanation.

This commit is contained in:
christos 2014-05-27 17:05:44 +00:00
parent 63fbbc0246
commit 87d253a1f6

View File

@ -1,4 +1,4 @@
.\" $NetBSD: malloc.9,v 1.47 2009/08/03 19:57:40 rmind Exp $
.\" $NetBSD: malloc.9,v 1.48 2014/05/27 17:05:44 christos Exp $
.\"
.\" Copyright (c) 1996, 2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd December 29, 2008
.Dd May 27, 2014
.Dt MALLOC 9
.Os
.Sh NAME
@ -72,8 +72,9 @@
These interfaces are being obsoleted and their new use is discouraged.
For new code, use
.Xr kmem 9
or
for variable-sized or one-time allocations
.Xr pool_cache 9
for frequent fixed-size allocations
instead.
.Ef
.Pp