malloc.9 (43d1df332e81eb5067d541349ede3b84ea2ab5df) malloc.9 (5d70612b3f814f934494f69876a4b34e13c436f9)
1.\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $
2.\"
3.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Paul Kranenburg.
8.\"

--- 102 unchanged lines hidden (view full) ---

111M_ASLEEP is not useful alone and should always be or'd with M_NOWAIT to allow
112malloc to call
113.Fn asleep
114and return
115.Dv NULL
116immediately. It is expected that the caller will at some point call
117.Fn await
118and then retry the allocation. Depending on the routine in question, the
1.\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $
2.\"
3.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Paul Kranenburg.
8.\"

--- 102 unchanged lines hidden (view full) ---

111M_ASLEEP is not useful alone and should always be or'd with M_NOWAIT to allow
112malloc to call
113.Fn asleep
114and return
115.Dv NULL
116immediately. It is expected that the caller will at some point call
117.Fn await
118and then retry the allocation. Depending on the routine in question, the
119caller may decide to propogate the temporary failure up the call chain
119caller may decide to propagate the temporary failure up the call chain
120and actually have some other higher level routine block on the async wait
121that
122.Fn malloc
123queued.
124.It Dv M_WAITOK
125indicates that it is Ok to wait for resources. It is unconveniently
126defined as 0 so care should be taken never to compare against this value
127directly or try to AND it as a flag. The default operation is to block

--- 99 unchanged lines hidden ---
120and actually have some other higher level routine block on the async wait
121that
122.Fn malloc
123queued.
124.It Dv M_WAITOK
125indicates that it is Ok to wait for resources. It is unconveniently
126defined as 0 so care should be taken never to compare against this value
127directly or try to AND it as a flag. The default operation is to block

--- 99 unchanged lines hidden ---