diff options
author | 2014-03-26 06:05:07 +0000 | |
---|---|---|
committer | 2014-03-26 06:05:07 +0000 | |
commit | 5682c1d07f7c086b508ad82dc7b4c709b1eaace3 (patch) | |
tree | e7d5b5d35a8d25d831056d96c9ab84b0adab917c | |
parent | Simply cansignal(), passing it processes instead of procs and (diff) | |
download | wireguard-openbsd-5682c1d07f7c086b508ad82dc7b4c709b1eaace3.tar.xz wireguard-openbsd-5682c1d07f7c086b508ad82dc7b4c709b1eaace3.zip |
CONTEXT for malloc.
feels a bit clumsy, hopefully jmc can help.
-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 |