Searched refs:vmlogrdr_cdev (Results 1 – 1 of 1) sorted by relevance
160 static struct cdev *vmlogrdr_cdev = NULL; variable770 vmlogrdr_cdev = cdev_alloc(); in vmlogrdr_register_cdev()771 if (!vmlogrdr_cdev) { in vmlogrdr_register_cdev()774 vmlogrdr_cdev->owner = THIS_MODULE; in vmlogrdr_register_cdev()775 vmlogrdr_cdev->ops = &vmlogrdr_fops; in vmlogrdr_register_cdev()776 rc = cdev_add(vmlogrdr_cdev, dev, MAXMINOR); in vmlogrdr_register_cdev()781 kobject_put(&vmlogrdr_cdev->kobj); in vmlogrdr_register_cdev()782 vmlogrdr_cdev=NULL; in vmlogrdr_register_cdev()791 if (vmlogrdr_cdev) { in vmlogrdr_cleanup()792 cdev_del(vmlogrdr_cdev); in vmlogrdr_cleanup()[all …]