*参照元 [#f3705111] #backlinks *説明 [#h733def7] -パス: 複数あり --CONFIG_IOMMU_API 有効: [[linux-4.4.1/drivers/iommu/iommu.c]] --CONFIG_IOMMU_API 無効: [[linux-4.4.1/include/linux/iommu.h]] --[[linux-4.4.1/CONFIG_IOMMU_API]] -FIXME: これは何? --説明 **引数 [#ec3fcb40] -struct device *dev -- --[[linux-4.4.1/device]] **返り値 [#waea6208] -struct iommu_group * -- --[[linux-4.4.1/iommu_group]] **参考 [#ye907f27] struct device の iommu_group を変更する関数 -[[linux-4.4.1/iommu_group_add_device()]] *実装 [#wb5db563] **CONFIG_IOMMU_API 有効: drivers/iommu/iommu.c [#c3a06a32] /** * iommu_group_get - Return the group for a device and increment reference * @dev: get the group that this device belongs to * * This function is called by iommu drivers and users to get the group * for the specified device. If found, the group is returned and the group * reference in incremented, else NULL. */ struct iommu_group *iommu_group_get(struct device *dev) { struct iommu_group *group = dev->iommu_group; if (group) kobject_get(group->devices_kobj); - --[[linux-4.4.1/kobject_get()]] return group; } EXPORT_SYMBOL_GPL(iommu_group_get); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] **CONFIG_IOMMU_API 無効: include/linux/iommu.h [#x0252ba4] static inline struct iommu_group *iommu_group_get(struct device *dev) { return NULL; } *コメント [#ya65a031]