I develop a kernel module using DMA dma_alloc_coherent() and remap_pfn_range(). Sometimes, when I close the app that opened the character device, I
dma_alloc_coherent()
remap_pfn_range()