Module Name: src
Committed By: rmind
Date: Tue Nov 26 20:47:26 UTC 2013
Modified Files:
src/share/man/man9: kmem.9
Log Message:
Mention kmem_intr(9) routines.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man9/kmem.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/kmem.9
diff -u src/share/man/man9/kmem.9:1.13 src/share/man/man9/kmem.9:1.14
--- src/share/man/man9/kmem.9:1.13 Tue Jun 14 00:18:00 2011
+++ src/share/man/man9/kmem.9 Tue Nov 26 20:47:26 2013
@@ -1,4 +1,4 @@
-.\" $NetBSD: kmem.9,v 1.13 2011/06/14 00:18:00 rmind Exp $
+.\" $NetBSD: kmem.9,v 1.14 2013/11/26 20:47:26 rmind Exp $
.\"
.\" Copyright (c)2006 YAMAMOTO Takashi,
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" SUCH DAMAGE.
.\"
.\" ------------------------------------------------------------
-.Dd June 14, 2011
+.Dd November 26, 2013
.Dt KMEM 9
.Os
.\" ------------------------------------------------------------
@@ -45,6 +45,17 @@
.Ft void
.Fn kmem_free \
"void *p" "size_t size"
+.\" ---
+.Ft void *
+.Fn kmem_intr_alloc \
+"size_t size" "km_flag_t kmflags"
+.Ft void *
+.Fn kmem_intr_zalloc \
+"size_t size" "km_flag_t kmflags"
+.Ft void
+.Fn kmem_intr_free \
+"void *p" "size_t size"
+.\" ---
.Ft char *
.Fn kmem_asprintf \
"const char *fmt" "..."
@@ -135,6 +146,18 @@ when the memory was allocated.
Freeing
.Dv NULL
is illegal.
+.Pp
+.\" ------------------------------------------------------------
+.Fn kmem_intr_alloc ,
+.Fn kmem_intr_zalloc
+and
+.Fn kmem_intr_free
+are the equivalents of the above kmem routines which can be called
+from the interrupt context.
+These routines are for the special cases.
+Normally,
+.Xr pool_cache 9
+should be used for memory allocation from interrupt context.
.\" ------------------------------------------------------------
.Sh NOTES
Making