struct device の iommu_group を変更する関数
/** * 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);
return group; } EXPORT_SYMBOL_GPL(iommu_group_get);
static inline struct iommu_group *iommu_group_get(struct device *dev) { return NULL; }