Lines Matching refs:char_device
814 * urd->char_device is used as indication that the online function has
880 if (urd->char_device) {
889 urd->char_device = cdev_alloc();
890 if (!urd->char_device) {
895 urd->char_device->ops = &ur_fops;
896 urd->char_device->owner = ur_fops.owner;
898 rc = cdev_add(urd->char_device, MKDEV(major, minor), 1);
914 urd->char_device->dev, NULL, "%s", node_id);
925 cdev_del(urd->char_device);
926 urd->char_device = NULL;
944 if (!urd->char_device) {
955 device_destroy(vmur_class, urd->char_device->dev);
956 cdev_del(urd->char_device);
957 urd->char_device = NULL;