*参照元 [#a1fe0e5c] #backlinks *説明 [#ec31e38c] -パス: [[linux-4.4.1/arch/x86/include/asm/dma-mapping.h]] -FIXME: これは何? --説明 **引数 [#j4275dcf] -struct device *dev -- --[[linux-4.4.1/device]] **返り値 [#d92479f3] -struct dma_map_ops * -- --[[linux-4.4.1/dma_map_ops]] **参考 [#ndc1d2b2] *実装 [#saa6239c] static inline struct dma_map_ops *get_dma_ops(struct device *dev) { #ifndef CONFIG_X86_DEV_DMA_OPS return dma_ops; - --[[linux-4.4.1/CONFIG_X86_DEV_DMA_OPS]] --[[linux-4.4.1/dma_ops(global)]] #else if (unlikely(!dev) || !dev->archdata.dma_ops) return dma_ops; else return dev->archdata.dma_ops; - --dev->archdata は struct dev_archdata 型 --[[linux-4.4.1/dev_archdata]] --[[linux-4.4.1/unlikely()]] #endif } *コメント [#i3a55cba]