Expand description
DMA mapping attributes.
Constants§
- DMA_
ATTR_ ALLOC_ SINGLE_ PAGES - This is a hint to the DMA-mapping subsystem that it’s probably not worth the time to try to allocate memory to in a way that gives better TLB efficiency.
- DMA_
ATTR_ FORCE_ CONTIGUOUS - Forces contiguous allocation of the buffer in physical memory.
- DMA_
ATTR_ NO_ KERNEL_ MAPPING - Lets the platform to avoid creating a kernel virtual mapping for the allocated buffer.
- DMA_
ATTR_ NO_ WARN - This tells the DMA-mapping subsystem to suppress allocation failure reports (similarly to __GFP_NOWARN).
- DMA_
ATTR_ PRIVILEGED - Used to indicate that the buffer is fully accessible at an elevated privilege level (and ideally inaccessible or at least read-only at lesser-privileged levels).
- DMA_
ATTR_ SKIP_ CPU_ SYNC - Allows platform code to skip synchronization of the CPU cache for the given buffer assuming that it has been already transferred to ‘device’ domain.
- DMA_
ATTR_ WEAK_ ORDERING - Specifies that reads and writes to the mapping may be weakly ordered, that is that reads and writes may pass each other.
- DMA_
ATTR_ WRITE_ COMBINE - Specifies that writes to the mapping may be buffered to improve performance.