Modules

If procfs is being used from within a module, be sure to set the owner field in the struct proc_dir_entry to THIS_MODULE.

struct proc_dir_entry* entry;

entry->owner = THIS_MODULE;