Update in 2.6.1
Update in 2.6.1
Posted Jan 11, 2004 1:26 UTC (Sun) by hogsberg (guest, #11751)Parent article: Driver porting: Char devices and large dev_t
It looks like that in 2.6.1 you need to call cdev_unmap() before calling cdev_del(). Otherwise the mapping from the device number range to the cdev object remains after the cdev object is freed.
Another useful tip: furter to the i_cdev pointer in the struct inode, there is also a field called i_cindex. This field gives the index of the device number in the allocated range.
