Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Document malloc_roundup().



details:   https://anonhg.NetBSD.org/src/rev/c67ed0a2ec0e
branches:  trunk
changeset: 518771:c67ed0a2ec0e
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Dec 05 12:44:24 2001 +0000

description:
Document malloc_roundup().

diffstat:

 distrib/sets/lists/comp/mi |  3 ++-
 share/man/man9/Makefile    |  4 ++--
 share/man/man9/malloc.9    |  6 +++++-
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r 57e1cf73b6b4 -r c67ed0a2ec0e distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Wed Dec 05 11:41:16 2001 +0000
+++ b/distrib/sets/lists/comp/mi        Wed Dec 05 12:44:24 2001 +0000
@@ -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
diff -r 57e1cf73b6b4 -r c67ed0a2ec0e share/man/man9/Makefile
--- a/share/man/man9/Makefile   Wed Dec 05 11:41:16 2001 +0000
+++ b/share/man/man9/Makefile   Wed Dec 05 12:44:24 2001 +0000
@@ -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 @@
        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 \
diff -r 57e1cf73b6b4 -r c67ed0a2ec0e share/man/man9/malloc.9
--- a/share/man/man9/malloc.9   Wed Dec 05 11:41:16 2001 +0000
+++ b/share/man/man9/malloc.9   Wed Dec 05 12:44:24 2001 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index