@Hans
Quote:
Hans wrote:
So large allocvec allocations might be fragmented physically in memory? I didn't realize that; although it's only important when you're writing a driver.
Fragmentation only affects physical addresses. The CPU will not see anything of that nature on user code, i.e. you will be able to access memory normally. But yes, as a matter of fact any allocation might (and very likely will) be scattered, anything beyond 4k which is the current page size.
For just about anybody, this will not have any consequence. This is ONLY interesting for memory that is used in a DMA operation. Even there, though, you don't need to have contiguous memory if you use StartDMA which makes a scatter/gather list for you. It of course assumes that the DMA operation in question supports Scatter/Gather.