The HyperNews Linux KHG Discussion Pages

Note: Untitled

Forum: Device Drivers
Re: Question Getting a DMA buffer aligned with 64k boundaries (Juan de La Figuera Bayon)
Date: Thu, 04 Sep 1997 12:05:03 GMT
From: Valery Shchedrin <valery@forthpick.kiev.ua>

If you allocate memory, using __get_dma_pages, you'll get aligned blocks. I use __get_dma_pages(GFP_KERNEL,4) for 64KB blocks and __get_dma_pages(GFP_KERNEL,5) for 128KB ones.

I'm not sure that it is correct way, but it seems to work right as supposed.