History

dma-mapping: introduce a dma_common_find_pages helper

A helper to find the backing page array based on a virtual address. This also ensures we do the same vm_flags check everywhere instead of slightly different or missing ones in a few places.

Christoph Hellwig committed 7 years ago

Commit 5cf45371 parent 51231744 files · +16 −20Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/dma-mapping.h+1−0
@@ -626,6 +626,7 @@ extern int dma_common_mmap(struct device *dev, struct vm_area_struct *vma, · 625 unmodified lines
626626 void *cpu_addr, dma_addr_t dma_addr, size_t size,
627627 unsigned long attrs);
628628
629+struct page **dma_common_find_pages(void *cpu_addr);
629630 void *dma_common_contiguous_remap(struct page *page, size_t size,
630631 pgprot_t prot, const void *caller);
631632

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t