• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/

Lines Matching refs:module

21 #include <asm/module.h>
45 struct module;
49 ssize_t (*show)(struct module_attribute *, struct module *, char *);
50 ssize_t (*store)(struct module_attribute *, struct module *,
52 void (*setup)(struct module *, const char *);
53 int (*test)(struct module *);
54 void (*free)(struct module *);
60 struct module *mod;
64 /* These are either module local, or the kernel's dummy ones. */
84 extern struct module __this_module;
88 #define THIS_MODULE ((struct module *)0)
130 /* What your module does. */
157 /* Optional firmware file (or files) needed by the module
249 struct module
256 /* Unique handle for this module */
313 /* Arch-specific module values */
363 static inline int module_is_live(struct module *mod)
368 /* Is this address in a module? (second is with no locks, for oops) */
369 struct module *module_text_address(unsigned long addr);
370 struct module *__module_text_address(unsigned long addr);
378 /* Look for this name: can be of form module:name. */
381 extern void __module_put_and_exit(struct module *mod, long code)
386 unsigned int module_refcount(struct module *mod);
393 static inline void __module_get(struct module *module)
395 if (module) {
396 BUG_ON(module_refcount(module) == 0);
397 local_inc(&module->ref[get_cpu()].count);
402 static inline int try_module_get(struct module *module)
406 if (module) {
408 if (likely(module_is_live(module)))
409 local_inc(&module->ref[cpu].count);
417 extern void module_put(struct module *module);
420 static inline int try_module_get(struct module *module)
422 return !module || module_is_live(module);
424 static inline void module_put(struct module *module)
427 static inline void __module_get(struct module *module)
438 struct module *__mod = (mod); \
482 /* Is this address in a module? */
483 static inline struct module *module_text_address(unsigned long addr)
488 /* Is this address in a module? (don't take a lock, we're oopsing) */
489 static inline struct module *__module_text_address(unsigned long addr)
504 static inline void __module_get(struct module *module)
508 static inline int try_module_get(struct module *module)
513 static inline void module_put(struct module *module)
573 struct module;
577 int mod_sysfs_init(struct module *mod);
578 int mod_sysfs_setup(struct module *mod,
581 int module_add_modinfo_attrs(struct module *mod);
582 void module_remove_modinfo_attrs(struct module *mod);
586 static inline int mod_sysfs_init(struct module *mod)
591 static inline int mod_sysfs_setup(struct module *mod,
598 static inline int module_add_modinfo_attrs(struct module *mod)
603 static inline void module_remove_modinfo_attrs(struct module *mod)
610 void module_add_driver(struct module *mod, struct device_driver *drv);
615 static inline void module_add_driver(struct module *mod, struct device_driver *drv)