*参照元 [#ye710130] #backlinks *説明 [#y56324de] -パス: [[linux-4.4.1/arch/arm/mm/dma-mapping.c]] -FIXME: これは何? --説明 **引数 [#z10e9eb3] -struct device *dev -- --[[linux-4.4.1/device]] -size_t size -- -dma_addr_t *handle -- --[[linux-4.4.1/dma_addr_t]] -gfp_t gfp -- --[[linux-4.4.1/gfp_t]] -struct dma_attrs *attrs -- --[[linux-4.4.1/dma_attrs]] **返り値 [#e700292a] -void * -- **参考 [#i433f8b1] *実装 [#q1493e88] /* * Allocate DMA-coherent memory space and return both the kernel remapped * virtual and bus address for that space. */ void *arm_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) { pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL); - --[[linux-4.4.1/__get_dma_pgprot()]] return __dma_alloc(dev, size, handle, gfp, prot, false, attrs, __builtin_return_address(0)); - --[[linux-4.4.1/__dma_alloc()]] --[[linux-4.4.1/__builtin_return_address()]] } *コメント [#pbd431b2]