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

kipade kipade at 163.com
Wed Jun 27 04:57:56 EDT 2018


If so, I make a driver was compiled as module and inserted by insmod
after some time the system booted, the driver could find the device if it
did not compiled as module. But, the fact is, my driver could not find
its device which was created during booting from device tree.

On 2018年06月27日 13:57, Greg KH wrote:
> 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
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies





More information about the Kernelnewbies mailing list