*参照元 [#yb4fc5bf] #backlinks *説明 [#q2be4763] -パス: [[linux-4.4.1/sound/core/memalloc.c]] -FIXME: これは何? --説明 **引数 [#pca2bed5] - -struct snd_dma_buffer *dmab -- --[[linux-4.4.1/snd_dma_buffer]] **返り値 [#d0ed5d85] - -- -なし **参考 [#ub657225] *実装 [#c63e0f24] /** * snd_dma_free_pages - release the allocated buffer * @dmab: the buffer allocation record to release * * Releases the allocated buffer via snd_dma_alloc_pages(). */ void snd_dma_free_pages(struct snd_dma_buffer *dmab) { switch (dmab->dev.type) { case SNDRV_DMA_TYPE_CONTINUOUS: snd_free_pages(dmab->area, dmab->bytes); break; - --[[linux-4.4.1/snd_free_pages()]] #ifdef CONFIG_HAS_DMA #ifdef CONFIG_GENERIC_ALLOCATOR case SNDRV_DMA_TYPE_DEV_IRAM: snd_free_dev_iram(dmab); break; - --[[linux-4.4.1/CONFIG_HAS_DMA]] --[[linux-4.4.1/CONFIG_GENERIC_ALLOCATOR]] --[[linux-4.4.1/snd_free_dev_iram()]] #endif /* CONFIG_GENERIC_ALLOCATOR */ case SNDRV_DMA_TYPE_DEV: snd_free_dev_pages(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); break; - --[[linux-4.4.1/snd_free_dev_pages()]] #endif #ifdef CONFIG_SND_DMA_SGBUF case SNDRV_DMA_TYPE_DEV_SG: snd_free_sgbuf_pages(dmab); break; - --[[linux-4.4.1/snd_free_sgbuf_pages()]] #endif default: pr_err("snd-malloc: invalid device type %d\n", dmab->dev.type); - --[[linux-4.4.1/pr_err()]] } } ... EXPORT_SYMBOL(snd_dma_free_pages); -ライセンスに関係なくシンボルを公開する。 --[[linux-4.4.1/EXPORT_SYMBOL()]] *コメント [#ve40b2b5]