Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1296371
| From | Al Viro <viro@ZenIV.linux.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [POC][PATCH 27/83] new helper: get_dma_pages() |
| Date | 2015-12-22 01:10 +0100 |
| Message-ID | <qIiGD-50N-47@gated-at.bofh.it> (permalink) |
| References | <qIing-4Eb-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Al Viro <viro@zeniv.linux.org.uk> same as __get_dma_pages(), except that it returns a pointer Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> --- include/linux/gfp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index f4304c1..07b714d 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -486,6 +486,9 @@ void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask); #define __get_dma_pages(gfp_mask, order) \ __get_free_pages((gfp_mask) | GFP_DMA, (order)) +#define get_dma_pages(gfp_mask, order) \ + ((void *)__get_free_pages((gfp_mask) | GFP_DMA, (order))) + extern void __free_pages(struct page *page, unsigned int order); extern void free_pages(const void *addr, unsigned int order); extern void free_hot_cold_page(struct page *page, bool cold); -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[POC][PATCH 27/83] new helper: get_dma_pages() Al Viro <viro@ZenIV.linux.org.uk> - 2015-12-22 01:10 +0100
csiph-web