Lines Matching refs:vmlogrdr_cdev
159 static struct cdev *vmlogrdr_cdev = NULL; variable
814 vmlogrdr_cdev = cdev_alloc(); in vmlogrdr_register_cdev()
815 if (!vmlogrdr_cdev) { in vmlogrdr_register_cdev()
818 vmlogrdr_cdev->owner = THIS_MODULE; in vmlogrdr_register_cdev()
819 vmlogrdr_cdev->ops = &vmlogrdr_fops; in vmlogrdr_register_cdev()
820 vmlogrdr_cdev->dev = dev; in vmlogrdr_register_cdev()
821 rc = cdev_add(vmlogrdr_cdev, vmlogrdr_cdev->dev, MAXMINOR); in vmlogrdr_register_cdev()
826 kobject_put(&vmlogrdr_cdev->kobj); in vmlogrdr_register_cdev()
827 vmlogrdr_cdev=NULL; in vmlogrdr_register_cdev()
836 if (vmlogrdr_cdev) { in vmlogrdr_cleanup()
837 cdev_del(vmlogrdr_cdev); in vmlogrdr_cleanup()
838 vmlogrdr_cdev=NULL; in vmlogrdr_cleanup()