Home
last modified time | relevance | path

Searched refs:new_dev_set (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/vfio/
Dvfio_main.c60 struct vfio_device_set *new_dev_set; in vfio_assign_device_set() local
75 new_dev_set = kzalloc(sizeof(*new_dev_set), GFP_KERNEL); in vfio_assign_device_set()
76 if (!new_dev_set) in vfio_assign_device_set()
78 mutex_init(&new_dev_set->lock); in vfio_assign_device_set()
79 INIT_LIST_HEAD(&new_dev_set->device_list); in vfio_assign_device_set()
80 new_dev_set->set_id = set_id; in vfio_assign_device_set()
83 dev_set = __xa_cmpxchg(&vfio_device_set_xa, idx, NULL, new_dev_set, in vfio_assign_device_set()
86 dev_set = new_dev_set; in vfio_assign_device_set()
90 kfree(new_dev_set); in vfio_assign_device_set()