Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 allocm, freem: one step closer to reality.
details: https://anonhg.NetBSD.org/src/rev/c003a11b7296
branches: trunk
changeset: 473708:c003a11b7296
user: kleink <kleink%NetBSD.org@localhost>
date: Wed Jun 16 14:19:27 1999 +0000
description:
allocm, freem: one step closer to reality.
diffstat:
share/man/man9/audio.9 | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 7bfe0a47a62c -r c003a11b7296 share/man/man9/audio.9
--- a/share/man/man9/audio.9 Wed Jun 16 13:52:58 1999 +0000
+++ b/share/man/man9/audio.9 Wed Jun 16 14:19:27 1999 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: audio.9,v 1.12 1999/06/12 20:10:55 kleink Exp $
+.\" $NetBSD: audio.9,v 1.13 1999/06/16 14:19:27 kleink Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -81,8 +81,8 @@
int (*query_devinfo)__P((void *, mixer_devinfo_t *));
- void *(*alloc)__P((void *, unsigned long, int, int));
- void (*free)__P((void *, void *, int));
+ void *(*allocm)__P((void *, int, size_t, int, int));
+ void (*freem)__P((void *, void *, int));
size_t (*round_buffersize)__P((void *, int, size_t));
int (*mappage)__P((void *, void *, int, int));
@@ -322,16 +322,16 @@
.Va mixer_devinfo_t
struct.
Return 0 on success, otherwise an error code.
-.It Dv "void *alloc(void *hdl, u_long size, int type, int flags)"
+.It Dv "void *allocm(void *hdl, int direction, size_t size, int type, int flags)"
.br
optional, is called to allocate the device buffers. If not present
.Xr malloc 9
-is used instead (with the same arguments except the first).
+is used instead (with the same arguments but the first two).
The reason for using a device dependent routine instead of
.Xr malloc 9
is that some buses need special allocation to do DMA.
Returns the address of the buffer, or 0 on failure.
-.It Dv void free(void *hdl, void *addr, int type)
+.It Dv void freem(void *hdl, void *addr, int type)
optional, is called to free memory allocated by
.Va alloc .
If not supplied
Home |
Main Index |
Thread Index |
Old Index