__unregister_chrdev — unregister and destroy a cdev
void __unregister_chrdev ( | unsigned int major, |
| unsigned int baseminor, | |
| unsigned int count, | |
const char * name); |
unsigned int majormajor device number
unsigned int baseminorfirst of the range of minor numbers
unsigned int countthe number of minor numbers this cdev is occupying
const char * namename of this range of devices
Unregister and destroy the cdev occupying the region described by
major, baseminor and count. This function undoes what
__register_chrdev did.