diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-04-29 17:17:42 -0700 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2003-04-29 17:17:42 -0700 |
| commit | fbf7eda6f4f1e3d5b9a26d82a6884755d34923b7 (patch) | |
| tree | 288b6fc4de89a142f68c249dbdd286042916034a /kernel | |
| parent | 67ac5b866bda838d9838faedad0435e3e84fb2bd (diff) | |
[PATCH] __module_get
Introduces __module_get for places where we know we already hold
a reference and ignoring the fact that the module is being "rmmod --wait"ed
is simpler.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index 17e2884ce495..06ff9328b30b 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -431,7 +431,7 @@ static inline void restart_refcounts(void) } #endif -static unsigned int module_refcount(struct module *mod) +unsigned int module_refcount(struct module *mod) { unsigned int i, total = 0; @@ -439,6 +439,7 @@ static unsigned int module_refcount(struct module *mod) total += atomic_read(&mod->ref[i].count); return total; } +EXPORT_SYMBOL(module_refcount); /* This exists whether we can unload or not */ static void free_module(struct module *mod); |
