<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi everyone,</p>
<p>Thank for your time, I'm new to linux kernel. I am reading LDD3
chapter 15, Dirrect Memory Access section. I see that when I call
function <i>dma_map_single</i> and <i>dma_unmap_single</i>, I
need to pass a direction as a parameter. I wonder what is purpose
of it? Does It relate to something like permission? Can I call <i>dma_map_single
</i>with DMA_BIDIRECTIONAL and then call <i>dma_unmap_single </i>with
DMA_TO_DEVICE? Will it cause any problem?</p>
<p>Thank you very much.</p>
<p><br>
</p>
</body>
</html>