参照元†
返り値†
CONFIG_IOMMU_API 有効: drivers/iommu/iommu.c†
/**
* 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);
CONFIG_IOMMU_API 無効: include/linux/iommu.h†
static inline struct iommu_group *iommu_group_get(struct device *dev)
{
return NULL;
}
コメント†