From owner-freebsd-hackers Wed Jan 22 00:40:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA22989 for hackers-outgoing; Wed, 22 Jan 1997 00:40:22 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA22984; Wed, 22 Jan 1997 00:40:17 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id TAA10401; Wed, 22 Jan 1997 19:36:11 +1100 Date: Wed, 22 Jan 1997 19:36:11 +1100 From: Bruce Evans Message-Id: <199701220836.TAA10401@godzilla.zeta.org.au> To: current@freebsd.org, hackers@freebsd.org, sysseh@devetir.qld.gov.au Subject: Re: Mmaping device space into user space Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I'm fooling around with some of the sound device drivers, and I'm wanting to >know how to mmap some of the DMA buffers that they use into user space. Any >clues? See scmmap() in syscons.c. Mmaping in device drivers is very easy if the memory is contiguous, page-aligned and never freed. Bruce