summaryrefslogtreecommitdiffstats
path: root/contrib/diff/src
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2012-12-20 00:34:54 +0000
committercognet <cognet@FreeBSD.org>2012-12-20 00:34:54 +0000
commit5780ffa9943117270e38bc8f702ffd7d32c1fb21 (patch)
treebb448a8516602634c5a2072ee5c822264ba3c3b2 /contrib/diff/src
parent8d0de870ce1620bcbd4a4fce4ffb731a015ce31d (diff)
downloadFreeBSD-src-5780ffa9943117270e38bc8f702ffd7d32c1fb21.zip
FreeBSD-src-5780ffa9943117270e38bc8f702ffd7d32c1fb21.tar.gz
Create an architecture-agnostic buffer pool manager that uses uma(9) to
manage a set of power-of-2 sized buffers for bus_dmamem_alloc(). This allows the caller to provide the back-end allocator uma allocator, allowing full control of the memory pages backing the pool. For convenience, it provides an optional builtin allocator that provides pages allocated with the VM_MEMATTR_UNCACHEABLE attribute, for managing pools of DMA buffers for BUS_DMA_COHERENT or BUS_DMA_NOCACHE. This also allows the caller to specify a minimum alignment, and it ensures that all buffers start on a boundary and have a length that's a multiple of that value, to avoid using buffers that trigger partial cache line flushes. Submitted by: Ian Lepore <freebsd@damnhippie.dyndns.org>
Diffstat (limited to 'contrib/diff/src')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud