Lines Matching refs:module
46 struct module;
50 ssize_t (*show)(struct module_attribute *, struct module *, char *);
51 ssize_t (*store)(struct module_attribute *, struct module *,
53 void (*setup)(struct module *, const char *);
54 int (*test)(struct module *);
55 void (*free)(struct module *);
61 struct module *mod;
86 extern struct module __this_module;
90 #define THIS_MODULE ((struct module *)0)
246 struct module struct
353 static inline int module_is_live(struct module *mod) in module_is_live()
359 struct module *module_text_address(unsigned long addr);
360 struct module *__module_text_address(unsigned long addr);
365 struct module *module_get_kallsym(unsigned int symnum, unsigned long *value,
371 int is_exported(const char *name, const struct module *mod);
373 extern void __module_put_and_exit(struct module *mod, long code)
378 unsigned int module_refcount(struct module *mod);
385 static inline void __module_get(struct module *module) in __module_get() argument
387 if (module) { in __module_get()
388 BUG_ON(module_refcount(module) == 0); in __module_get()
389 local_inc(&module->ref[get_cpu()].count); in __module_get()
394 static inline int try_module_get(struct module *module) in try_module_get() argument
398 if (module) { in try_module_get()
400 if (likely(module_is_live(module))) in try_module_get()
401 local_inc(&module->ref[cpu].count); in try_module_get()
409 static inline void module_put(struct module *module) in module_put() argument
411 if (module) { in module_put()
413 local_dec(&module->ref[cpu].count); in module_put()
415 if (unlikely(!module_is_live(module))) in module_put()
416 wake_up_process(module->waiter); in module_put()
422 static inline int try_module_get(struct module *module) in try_module_get() argument
424 return !module || module_is_live(module); in try_module_get()
426 static inline void module_put(struct module *module) in module_put() argument
429 static inline void __module_get(struct module *module) in __module_get() argument
440 struct module *__mod = (mod); \
469 void module_add_driver(struct module *, struct device_driver *);
487 static inline struct module *module_text_address(unsigned long addr) in module_text_address()
493 static inline struct module *__module_text_address(unsigned long addr) in __module_text_address()
508 static inline void __module_get(struct module *module) in __module_get() argument
512 static inline int try_module_get(struct module *module) in try_module_get() argument
517 static inline void module_put(struct module *module) in module_put() argument
534 static inline struct module *module_get_kallsym(unsigned int symnum, in module_get_kallsym()
547 static inline int is_exported(const char *name, const struct module *mod) in is_exported()
570 struct module;
572 static inline void module_add_driver(struct module *module, struct device_driver *driver) in module_add_driver() argument