|
|
Log in / Subscribe / Register

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.


to post comments

Update in 2.6.1

Posted Jun 1, 2004 7:50 UTC (Tue) by amit (subscriber, #1274) [Link]

Atleast in 2.6.6, cdev_del first calls cdev_unmap, so that shouldn't be
necessary.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds