First page
Back
Continue
Last page
Overview
Graphics
Character device unregistration
First delete your character device:
void
cdev_del
(struct
cdev
*p);
Then, and only then, free the device number:
void
unregister_chrdev_region
(
dev_t
from, unsigned count);
Example (continued):
cdev_del
(&acme_cdev);
unregister_chrdev_region
(acme_dev, acme_count);