summaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2012-10-18 22:00:58 +0200
committerJoerg Roedel <joerg.roedel@amd.com>2012-10-24 17:07:43 +0200
commit8d7f62e6a7aa0bfd7163d3c4a5fb59280f6a6eb5 (patch)
treecafab6820ac262f0c718e498f92fb08ce8033271 /lib/dma-debug.c
parentdma-debug: New interfaces to debug dma mapping errors (diff)
downloadlinux-8d7f62e6a7aa0bfd7163d3c4a5fb59280f6a6eb5.tar.xz
linux-8d7f62e6a7aa0bfd7163d3c4a5fb59280f6a6eb5.zip
Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples
Enhance the document to discuss the importance of dma mapping error checks after dma_map_single() and dma_map_page() calls. Also added usage examples that include unmap examples in error paths when dma mapping error is returned. Includes correct and incorrect usages to high light some common mistakes in error paths especially when dma mapping fails when more than one dma mapping call is made. Signed-off-by: Shuah Khan <shuah.khan@hp.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions