Source-Changes-HG archive

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

[src/trunk]: src/share/man/man9 remove M_SOFTDEP from list of supported mallo...



details:   https://anonhg.NetBSD.org/src/rev/9522c9234e9b
branches:  trunk
changeset: 933762:9522c9234e9b
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat May 30 17:12:01 2020 +0000

description:
remove M_SOFTDEP from list of supported malloc types, it's long gone

also remove M_PCB - while it is used by SCTP, it's actually not defined
anywhere

in fact add new NOTES section explaining that the malloc types are
actually not used on NetBSD

diffstat:

 share/man/man9/malloc.9 |  24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 15dec1b8b65c -r 9522c9234e9b share/man/man9/malloc.9
--- a/share/man/man9/malloc.9   Sat May 30 16:35:02 2020 +0000
+++ b/share/man/man9/malloc.9   Sat May 30 17:12:01 2020 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: malloc.9,v 1.55 2018/10/14 17:40:28 jdolecek Exp $
+.\"    $NetBSD: malloc.9,v 1.56 2020/05/30 17:12:01 jdolecek 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 October 14, 2018
+.Dd May 30, 2020
 .Dt MALLOC 9
 .Os
 .Sh NAME
@@ -222,10 +222,6 @@
 structures.
 .It Dv M_FREE
 Should be on free list.
-.It Dv M_PCB
-Protocol control block.
-.It Dv M_SOFTINTR
-Softinterrupt structures.
 .It Dv M_TEMP
 Misc temporary data buffers.
 .El
@@ -233,6 +229,22 @@
 Other malloc types are defined by the corresponding subsystem; see the
 documentation for that subsystem for information its available malloc
 types.
+.Sh NOTES
+Note that the malloc type argument is actually unused on
+.Nx ,
+the argument is only supported for easier source compatibility
+with
+.Fx
+and
+.Ox .
+Likewise calls to
+.Fn MALLOC_DECLARE
+.Fn MALLOC_DEFINE ,
+.Fn malloc_type_attach ,
+and
+.Fn malloc_type_detach
+are defined out and have no effect on
+.Nx .
 .Sh RETURN VALUES
 .Fn malloc
 returns a kernel virtual address that is suitably aligned for storage of



Home | Main Index | Thread Index | Old Index