Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1296371 > unrolled thread
| Started by | Al Viro <viro@ZenIV.linux.org.uk> |
|---|---|
| First post | 2015-12-22 01:10 +0100 |
| Last post | 2015-12-22 01:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[POC][PATCH 27/83] new helper: get_dma_pages() Al Viro <viro@ZenIV.linux.org.uk> - 2015-12-22 01:10 +0100
| From | Al Viro <viro@ZenIV.linux.org.uk> |
|---|---|
| Date | 2015-12-22 01:10 +0100 |
| Subject | [POC][PATCH 27/83] new helper: get_dma_pages() |
| Message-ID | <qIiGD-50N-47@gated-at.bofh.it> |
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 top | Article view | linux.kernel
csiph-web