how to get a 64k DMA buffer for a user program?

Harald Koenig (
Wed, 2 Apr 1997 21:48:27 +0200 (MET DST)


is there a simple hack for Linux 2.0.X that the kernel allocates a
contigous 64k area of memory which then can be mmaped by a user program
which is going to use this as DMA buffer then ?

using a full kernel driver is no option (at least right now for first tests)
and having this 64k locked, contiguous area seems to be enough for now
(it's a PCI card, so there is no need for <16MB addresses).

aTdHvAaNnKcSe for any hint/hack,


All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \                     ^^^^^       ^^^^^