diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-03-26 06:05:08 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-03-26 06:05:08 +0000 |
commit | a1c9af3c2c13417684044de10947f4a73363e1e1 (patch) | |
tree | 360e2cd6a54cfc25b9aa953d08a0979300877cb5 /share/man/man9/malloc.9 | |
parent | 31af525958e2a3a8bd2a3f8e1efeeb64061ef636 (diff) |
CONTEXT for malloc.
feels a bit clumsy, hopefully jmc can help.
Diffstat (limited to 'share/man/man9/malloc.9')
-rw-r--r-- | share/man/man9/malloc.9 | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index 8de3d269da8..52dea68cc97 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: malloc.9,v 1.49 2013/07/04 17:39:45 tedu Exp $ +.\" $OpenBSD: malloc.9,v 1.50 2014/03/26 06:05:07 dlg Exp $ .\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 4 2013 $ +.Dd $Mdocdate: March 26 2014 $ .Dt MALLOC 9 .Os .Sh NAME @@ -286,6 +286,19 @@ AGP memory. .It Dv M_DRM Direct Rendering Manager. .El +.Sh CONTEXT +.Fn malloc +can be called during autoconf, or from process context if +.Dv M_WAITOK +is passed via +.Fa flags , +or during during autoconf, from process context, or from interrupt context if +.Dv M_NOWAIT +is passed via +.Fa flags . +.Pp +.Fn free +can be called during autoconf, from process context, or from interrupt context. .Sh RETURN VALUES .Fn malloc returns a kernel virtual address that is suitably aligned for storage of |