*参照元 [#w16aa465] #backlinks *説明 [#a723429b] -パス: 複数あり --CONFIG_DMA_ENGINE 無効: [[linux-4.4.1/include/linux/dmaengine.h]] --CONFIG_DMA_ENGINE 有効: [[linux-4.4.1/drivers/dma/dmaengine.c]] -FIXME: これは何? --説明 **引数 [#e05b318e] - -- **返り値 [#nf37f271] - -- **参考 [#bbf10cd6] *実装 [#a3196dc4] **CONFIG_DMA_ENGINE 無効: include/linux/dmaengine.h [#j193b6a6] static inline struct dma_chan *dma_request_slave_channel_reason( struct device *dev, const char *name) { return ERR_PTR(-ENODEV); - --[[linux-4.4.1/ERR_PTR()]] } **CONFIG_DMA_ENGINE 有効: drivers/dma/dmaengine.c [#ib2315ea] /** * dma_request_slave_channel_reason - try to allocate an exclusive slave channel * @dev: pointer to client device structure * @name: slave channel name * * Returns pointer to appropriate DMA channel on success or an error pointer. */ struct dma_chan *dma_request_slave_channel_reason(struct device *dev, const char *name) { /* If device-tree is present get slave info from here */ if (dev->of_node) return of_dma_request_slave_channel(dev->of_node, name); - --[[linux-4.4.1/of_dma_request_slave_channel()]] /* If device was enumerated by ACPI get slave info from here */ if (ACPI_HANDLE(dev)) return acpi_dma_request_slave_chan_by_name(dev, name); - --[[linux-4.4.1/ACPI_HANDLE()]] --[[linux-4.4.1/acpi_dma_request_slave_chan_by_name()]] return ERR_PTR(-ENODEV); } EXPORT_SYMBOL_GPL(dma_request_slave_channel_reason); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#z931d926]