Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2009 17:03:20 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-hackers@FreeBSD.org
Subject:   MOD_UNLOAD and driver with cdev
Message-ID:  <49773938.5010000@icyb.net.ua>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49773938.5010000>