Tag: fa23f56d90ed7bd760ae2aea6dfb2f501a099e90

mm: add support for __GFP_ZERO flag to dma_pool_alloc()

Author: Sean O. Stalley <sean.stalley@intel.com> Currently a call to dma_pool_alloc() with a ___GFP_ZERO flag returns a non-zeroed memory region. This patchset adds support for the __GFP_ZERO flag to dma_pool_alloc(), adds 2 wrapper functions for allocing zeroed memory from a pool, and provides a coccinelle script for finding & replacing instances of dma_pool_alloc() followed by memset(0) …

Continue reading