简体   繁体   中英

Is Memory leaked by a kernel module is returned to system when we remove that module?

Suppose I have a kernel module which is loaded in to kernel dynamically. This kernel module is having some memory leak. If i remove that module the leaked memory by the module is returned to the system ? or still the memory is unavailable for usage?

No. There is no automatic memory collection in the kernel. If you allocate it, you're responsible for keeping track of it and releasing it before your module is unloaded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM