mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-27 03:35:51 -04:00
The system heap can be easily turned into a module by adding the usual MODULE_* macros, importing the proper namespaces and changing the Kconfig symbol to a tristate. This heap won't be able to unload though, since we're missing a lot of infrastructure to make it safe. Reviewed-by: T.J. Mercier <tjmercier@google.com> Acked-by: Andrew Davis <afd@ti.com> Signed-off-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Link: https://patch.msgid.link/20260427-dma-buf-heaps-as-modules-v5-3-b6f5678feefc@kernel.org
15 lines
501 B
Plaintext
15 lines
501 B
Plaintext
config DMABUF_HEAPS_SYSTEM
|
|
tristate "DMA-BUF System Heap"
|
|
depends on DMABUF_HEAPS
|
|
help
|
|
Choose this option to enable the system dmabuf heap. The system heap
|
|
is backed by pages from the buddy allocator. If in doubt, say Y.
|
|
|
|
config DMABUF_HEAPS_CMA
|
|
tristate "DMA-BUF CMA Heap"
|
|
depends on DMABUF_HEAPS && DMA_CMA
|
|
help
|
|
Choose this option to enable dma-buf CMA heap. This heap is backed
|
|
by the Contiguous Memory Allocator (CMA). If your system has these
|
|
regions, you should say Y here.
|