*参照元 [#fb813ef9] #backlinks *説明 [#y9e0bca0] -パス: 複数あり --CONFIG_IOMMU_API 有効: [[linux-4.4.1/drivers/iommu/iommu.c]] --CONFIG_IOMMU_API 無効: [[linux-4.4.1/include/linux/iommu.h]] -FIXME: これは何? --説明 **引数 [#rc97afbc] -struct device *dev -- --[[linux-4.4.1/device]] **返り値 [#n408f5fa] -struct iommu_domain * -- --[[linux-4.4.1/iommu_domain]] **参考 [#n7cff683] *実装 [#gf2c02b9] **CONFIG_IOMMU_API 有効: drivers/iommu/iommu.c [#s822e346] struct iommu_domain *iommu_get_domain_for_dev(struct device *dev) { struct iommu_domain *domain; struct iommu_group *group; - --[[linux-4.4.1/iommu_group]] group = iommu_group_get(dev); /* FIXME: Remove this when groups a mandatory for iommu drivers */ if (group == NULL) return NULL; - --[[linux-4.4.1/iommu_group_get()]] domain = group->domain; iommu_group_put(group); - --[[linux-4.4.1/iommu_group_put()]] return domain; } EXPORT_SYMBOL_GPL(iommu_get_domain_for_dev); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] **CONFIG_IOMMU_API 無効: include/linux/iommu.h [#aa968b54] static inline struct iommu_domain *iommu_get_domain_for_dev(struct device *dev) { return NULL; } *コメント [#ec080383]