|
Update in 2.6.1Update in 2.6.1Posted 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.
(Log in to post comments)
Update in 2.6.1 Posted Jun 1, 2004 7:50 UTC (Tue) by amit (guest, #1274) [Link] Atleast in 2.6.6, cdev_del first calls cdev_unmap, so that shouldn't benecessary.
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.