So do they just leak on module unload?
So do they just leak on module unload?
Posted Oct 23, 2025 7:26 UTC (Thu) by taladar (subscriber, #68407)Parent article: DebugFS on Rust
> Finally, DebugFS directories have to be manually torn down; they aren't scoped to an individual kernel module.
So what happens on module unload here? Do they just leak if the module doesn't implement cleanup? Can the same module clean them up if it is loaded again? Or a newer version of that module during development where the programmer initially forgets to implement cleanup?
Honestly, this seems like the exact kind of sloppy design common in C that Rust ownership is supposed to make harder to do accidentally.
