]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: Add a new dma_need_sync API
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jun 2020 13:03:56 +0000 (15:03 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 30 Jun 2020 13:44:03 +0000 (15:44 +0200)
commit0b33cb96bcda437ccd8f20c9d5c5c71ddaff676a
tree200b5d80ea2b377dcdc560056f1fc247dc18024f
parent856a09f4123816ff4501691ea9368aea7bde960a
dma-mapping: Add a new dma_need_sync API

Add a new API to check if calls to dma_sync_single_for_{device,cpu} are
required for a given DMA streaming mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200629130359.2690853-2-hch@lst.de
Documentation/core-api/dma-api.rst
include/linux/dma-direct.h
include/linux/dma-mapping.h
kernel/dma/direct.c
kernel/dma/mapping.c