linux 内存驱动程序,从哪里开始学习Linux DMA/设备驱动程序/内存分配

在线:

书:

有用资源:

dma_sync_single_range_for_cpu

在文件中再向上一点,这是源文档(我假设即使这是用于ARM的,接口和行为也是相同的):

/**

380 * dma_sync_single_range_for_cpu

381 * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices

382 * @handle: DMA address of buffer

383 * @offset: offset of region to start sync

384 * @size: size of region to sync

385 * @dir: DMA transfer direction (same as passed to dma_map_single)

386 *

387 * Make physical memory consistent for a single streaming mode DMA

388 * translation after a transfer.

389 *

390 * If you perform a dma_map_single() but wish to interrogate the

391 * buffer using the cpu, yet do not wish to teardown the PCI dma

392 * mapping, you must call this function before doing so. At the

393 * next point you give the PCI dma address back to the card, you

394 * must first the perform a dma_sync_for_device, and then the

395 * device again owns the buffer.

396 */

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值