Subject: Re: DMA mapping file mappings
To: Jachym Holecek <>
From: Damien Bergamini <>
List: tech-kern
Date: 09/14/2004 21:29:49
| This way you have to trust userland passes wired memory. I'd instead
| lock the memory myself on driver side using uvm_vslock(9). You'll need 
| uvm_vsunlock(9) it after you're done with the buffer, of course - 
| if your ioctl() call blocks.

Thanks a lot! This is exactly what I was looking for. Locking memory on
the driver side is surely a far better solution than locking it in the
userland! The ioctl is blocking so there's no problem with this 

Thanks again,
Damien Bergamini
damien.bergamini [at]