Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Mention kmem_intr(9) routines.
details: https://anonhg.NetBSD.org/src/rev/d3c0f92adad6
branches: trunk
changeset: 791632:d3c0f92adad6
user: rmind <rmind%NetBSD.org@localhost>
date: Tue Nov 26 20:47:26 2013 +0000
description:
Mention kmem_intr(9) routines.
diffstat:
share/man/man9/kmem.9 | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r 3d01cfaf0ec0 -r d3c0f92adad6 share/man/man9/kmem.9
--- a/share/man/man9/kmem.9 Tue Nov 26 20:29:40 2013 +0000
+++ b/share/man/man9/kmem.9 Tue Nov 26 20:47:26 2013 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index