dma_alloc_coherent 分析
2008-12-25 17:50
281 查看
dma_alloc_coherent ->__dma_alloc->
* These are the page tables (2MB each) covering uncached, DMA consistent allocations
分析consistent_init(void)-》(consistent.c):
pgd = pgd_offset(&init_mm, base);
struct mm_struct init_mm = INIT_MM(init_mm);每个进程一个mm_struct结构
就是对2m的空间申请页面,把页面表项放入consistent_pte中去
更加准确的说dma_alloc_coherent 不是要在用到dma的时候才用它来分配空间的,而是在用到总线地址的时候用它来分配空间,例如:mx27的pp就用到总线地址,所以用dma_alloc_coherent 来分配空间,,
* These are the page tables (2MB each) covering uncached, DMA consistent allocations
分析consistent_init(void)-》(consistent.c):
pgd = pgd_offset(&init_mm, base);
struct mm_struct init_mm = INIT_MM(init_mm);每个进程一个mm_struct结构
就是对2m的空间申请页面,把页面表项放入consistent_pte中去
更加准确的说dma_alloc_coherent 不是要在用到dma的时候才用它来分配空间的,而是在用到总线地址的时候用它来分配空间,例如:mx27的pp就用到总线地址,所以用dma_alloc_coherent 来分配空间,,
相关文章推荐
- dma_alloc_coherent的第三个参数dma_handle 分析
- 【引用】DMA内存申请--dma_alloc_coherent
- 怎样让 dma_alloc_coherent() 可以申请更大的内存
- dma_alloc_writecombine和dma_alloc_coherent的区别
- 【Linux开发】linux中关于dma_alloc_coherent的用法
- dma_alloc_coherent (建立一致性 DMA 映射函数)
- dma_alloc_coherent 与 dma_alloc_writecombine
- dma_alloc_from_coherent 由于mem为null 返回
- 内核使用硬件ip的dma,dma_alloc_coherent 与 dma_alloc_writecombine
- dma_alloc_coherent vs. dma_alloc_writecombine
- 宋宝华:关于DMA ZONE和dma_alloc_coherent若干误解的澄清
- 内核使用硬件ip的dma,dma_alloc_coherent 与 dma_alloc_writecombine
- 内核使用硬件ip的dma,dma_alloc_coherent 与 dma_alloc_writecombine (转)
- 【study】DMA内存申请--dma_alloc_coherent 及 寄存器 与 内存
- dma_alloc_coherent (建立一致性 DMA 映射函数)
- dma_alloc_coherent 和 dma_alloc_writecombine
- uio的mmap的memory是通过dma_alloc_coherent来做映射的
- dma_alloc_coherent vs. dma_alloc_writecombine
- dma_alloc_writecombine和dma_alloc_coherent的区别
- linux中关于dma_alloc_coherent的用法