root_device
static inline struct root_device *to_root_device(struct device *d)
return container_of(d, struct root_device, dev);
struct root_device *root;
root = kzalloc_obj(struct root_device);
struct root_device *root = to_root_device(dev);
struct fw_device *root_device = fw_node_get_device(root_node);
if (root_device == NULL) {
atomic_read(&root_device->state) == FW_DEVICE_RUNNING;
} else if (!root_device->cmc) {
struct fw_device *root_device = fw_node_get_device(root_node);
if (root_device && root_device->cmc) {
matrix_dev->device.parent = root_device;
root_device_unregister(root_device);
struct device *root_device = matrix_dev->device.parent;
root_device_unregister(root_device);
struct device *root_device;
root_device = root_device_register(VFIO_AP_ROOT_NAME);
if (IS_ERR(root_device))
return PTR_ERR(root_device);
int __init nfs_root_data(char **root_device, char **root_data)
*root_device = nfs_root_device;
extern int nfs_root_data(char **root_device, char **root_data); /*__init*/