From c707f7c3f355057843e57959f2e9f1d767bf16f5 Mon Sep 17 00:00:00 2001 From: harti Date: Thu, 12 Jun 2003 09:03:15 +0000 Subject: Rename the section 'locking considerations' into 'context'. Change the wording in this section to get rid of references to mutexes and talk about sleeping instead. Discussed with: jhb@, ru@ --- share/man/man9/malloc.9 | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'share/man') diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index 9cbfc2e..0cb271a 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -36,7 +36,7 @@ .\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $ .\" $FreeBSD$ .\" -.Dd April 9, 2003 +.Dd June 12, 2003 .Dt MALLOC 9 .Os .Sh NAME @@ -260,7 +260,7 @@ flags .Dv M_DONTWAIT and .Dv M_TRYWAIT . -.Sh LOCKING CONSIDERATIONS +.Sh CONTEXT .Fn malloc , .Fn realloc and @@ -275,15 +275,10 @@ must contain .Fn realloc and .Fn reallocf -must not be called with -.Dv M_WAITOK -while a mutex other than -.Va Giant -is held. -.Va Giant -may or may not be held when +may sleep when called with +.Dv M_WAITOK . .Fn free -is called. +never sleeps. .Pp Any calls to .Fn malloc -- cgit v1.1