where and when the kernel destroy devices memory if there were no matched driver for it?

Greg KH greg at kroah.com
Wed Jun 27 01:57:11 EDT 2018


On Wed, Jun 27, 2018 at 01:52:55PM +0800, kipade wrote:
> Hi, all
> 
> As my question, would kernel destroy deivces struct if there were no matched
> driver attached on it?

No, only when the device is removed from the system does that structure
get destroyed.

greg k-h



More information about the Kernelnewbies mailing list