2005-11-27 18:06:47

by Mateusz Berezecki

[permalink] [raw]
Subject: memory allocation for DMA operations from network interface

Hello List,

My question is about DMA transfers from network device. I suspect
these transfers require allocating physically contiguous memory
blocks. What is the proper way to allocate such contiguous memory for
DMA purposes inside the kernel? Also what is the proper and
architecture independent way to convert virtual address to physical
one?


kind regards
Mateusz Berezecki


2005-11-27 18:19:20

by Arjan van de Ven

[permalink] [raw]
Subject: Re: memory allocation for DMA operations from network interface

On Sun, 2005-11-27 at 19:06 +0100, Mateusz Berezecki wrote:
> Hello List,
>
> My question is about DMA transfers from network device. I suspect
> these transfers require allocating physically contiguous memory
> blocks. What is the proper way to allocate such contiguous memory for
> DMA purposes inside the kernel? Also what is the proper and
> architecture independent way to convert virtual address to physical
> one?

see Documentation/DMA-mapping.txt