dma_map_single gives OOPS

view full story

http://www.linuxquestions.org – Hello All, To understand DMA, I tried to implement sample dma module in x86 machine on (SUSE ). here is the code <code> #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/dma-mapping.h> #include <linux/dmapool.h> #include <linux/device.h> static char *buffer= NULL; static struct device *dev= NULL; dma_addr_t mapping; static int __init dma_init(void) { buffer = kmalloc(10, GFP_KERNEL); if(buffer == NULL) { printk("kernel unbale to alloca (HowTos)