Lines Matching defs:device
10 * parameters. One device will be created for each parameter. Syntax:
12 * virtio_uml.device=<socket>:<virtio_id>[:<platform_id>]
15 * <virtio_id> := virtio device id (as in virtio_ids.h)
16 * <platform_id> := (optional) platform device id
19 * virtio_uml.device=/var/uml.socket:1
136 * to a device (e.g. a net device) and need to handle a simulation
916 * calendar (the simtime device), except for the simtime device itself
1073 static void virtio_uml_release_dev(struct device *d)
1091 /* Platform device */
1109 vu_dev->vdev.id.device = pdata->virtio_device_id;
1152 /* Command line device list */
1154 static void vu_cmdline_release_dev(struct device *d)
1158 static struct device vu_cmdline_parent = {
1166 static int vu_unregister_cmdline_device(struct device *dev, void *data)
1184 static int vu_cmdline_set(const char *device, const struct kernel_param *kp)
1186 const char *ids = strchr(device, ':');
1193 if (!ids || ids == device)
1206 pr_err("Failed to register parent device!\n");
1213 socket_path = kmemdup_nul(device, ids - device, GFP_KERNEL);
1220 pr_info("Registering device virtio-uml.%d id=%d at %s\n",
1241 static int vu_cmdline_get_device(struct device *dev, void *data)
1267 device_param_cb(device, &vu_cmdline_param_ops, NULL, S_IRUSR);
1269 "virtio_uml.device=<socket>:<virtio_id>[:<platform_id>]\n"
1270 " Configure a virtio device over a vhost-user socket.\n"
1271 " See virtio_ids.h for a list of possible virtio device id values.\n"