MOD_UNLOAD and driver with cdev

Andriy Gapon avg at icyb.net.ua
Wed Jan 21 07:03:24 PST 2009


Do I need to code for MOD_UNLOAD for driver module that also creates a cdev?
I see in the current code that one strategy is to simply call
destroy_dev(). I guess detach routines are called automatically and
destroy_dev can be done there as well..

Is it reasonable to refuse unload if cdev is in use (in MOD_QUIESCE)?
How to check for that best?

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list