From 4da6fcc004904f41e683c19d4a62f690f1c079ba Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sat, 30 May 2020 17:12:01 +0000 Subject: [PATCH] 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 --- share/man/man9/malloc.9 | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index 33f9d699042a..f58d42ab7a27 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -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 @@ Device driver memory. 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 @@ Misc temporary data buffers. 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