Document malloc_roundup().

This commit is contained in:
ad 2001-12-05 12:44:24 +00:00
parent 31fcd50433
commit 079e2a0548
3 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.411 2001/12/05 06:57:35 lukem Exp $
# $NetBSD: mi,v 1.412 2001/12/05 12:44:24 ad Exp $
./sys comp-sysutil-root
./usr/bin/addr2line comp-debug-bin
./usr/bin/ar comp-util-bin
@ -5568,6 +5568,7 @@
./usr/share/man/man9/m_pullup.9 comp-sys-man
./usr/share/man/man9/m_split.9 comp-sys-man
./usr/share/man/man9/malloc.9 comp-sys-man
./usr/share/man/man9/malloc_roundup.9 comp-sys-man
./usr/share/man/man9/mbuf.9 comp-sys-man
./usr/share/man/man9/mca.9 comp-sys-man
./usr/share/man/man9/mca_conf_read.9 comp-sys-man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.100 2001/12/05 07:31:24 lukem Exp $
# $NetBSD: Makefile,v 1.101 2001/12/05 12:44:25 ad Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@ -171,7 +171,7 @@ MLINKS+=lock.9 simple_lock_init.9 lock.9 simple_lock.9 \
lock.9 lockinit.9 lock.9 lockmgr.9 \
lock.9 lockstatus.9 lock.9 lockmgr_printinfo.9 \
lock.9 spinlockinit.9 lock.9 spinlockmgr.9
MLINKS+=malloc.9 free.9
MLINKS+=malloc.9 free.9 malloc_roundup.9
MLINKS+=mbuf.9 m_get.9 mbuf.9 m_getclr.9 mbuf.9 m_gethdr.9 mbuf.9 m_devget.9 \
mbuf.9 m_copym.9 mbuf.9 m_copypacket.9 mbuf.9 m_copydata.9 \
mbuf.9 m_copyback.9 mbuf.9 m_cat.9 mbuf.9 m_dup.9 mbuf.9 m_prepend.9 \

View File

@ -1,4 +1,4 @@
.\" $NetBSD: malloc.9,v 1.20 2001/12/04 23:42:02 wiz Exp $
.\" $NetBSD: malloc.9,v 1.21 2001/12/05 12:44:25 ad Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -45,6 +45,8 @@
.Ft void *
.Fn malloc "unsigned long size" "int type" "int flags"
.Fn MALLOC "space" "cast" "unsigned long size" "int type" "int flags"
.Ft unsigned long
.Fn malloc_roundup "unsigned long size"
.Ft void
.Fn free "void *addr" "int type"
.Fn FREE "void *addr" "int type"
@ -54,6 +56,8 @@ The
function allocates uninitialized memory in kernel address space for an
object whose size is specified by
.Fa size .
.Fn malloc_roundup
returns the actual size of the allocation unit for the given value.
.Fn free
releases memory at address
.Fa addr