Lines Matching refs:module

87 static struct module *load_exec(val_t *, char *);
91 static int load_primary(struct module *, int);
93 static int get_progbits(struct module *, struct _buf *);
94 static int get_syms(struct module *, struct _buf *);
95 static int get_ctf(struct module *, struct _buf *);
96 static void get_signature(struct module *, struct _buf *);
97 static int do_common(struct module *);
98 static void add_dependent(struct module *, struct module *);
100 static int do_symbols(struct module *, Elf64_Addr);
101 static void module_assign(struct modctl *, struct module *);
102 static void free_module_data(struct module *);
103 static char *depends_on(struct module *);
120 static Sym *lookup_one(struct module *, const char *);
121 static void sym_insert(struct module *, char *, symid_t);
122 static Sym *sym_lookup(struct module *, Sym *);
131 extern int alloc_gottable(struct module *, caddr_t *, caddr_t *);
157 * D_LOADING - display information about each module as it
168 #define MODPATH_PROPNAME "module-path"
181 #define mod(X) (struct module *)((X)->modl_modp->mod_mp)
215 char *kobj_module_path; /* module search path */
216 vmem_t *text_arena; /* module text arena */
217 static vmem_t *data_arena; /* module data & bss arena */
365 struct module *mp;
450 * Set the module search path.
702 static struct module *
706 struct module *mp;
715 _kobj_printf(ops, "module path '%s'\n", kobj_module_path);
721 KOBJ_MARK("struct module");
722 mp = kobj_zalloc(sizeof (struct module), KM_WAIT);
727 * since this module is an executable and not
735 * Since this module is the only exception,
884 * Set up the linker module (if it's compiled in, LDNAME is NULL)
889 struct module *kmp = (struct module *)kobj_modules->mod_mp;
890 struct module *mp;
906 mp = kobj_zalloc(sizeof (struct module), KM_WAIT);
1043 * Notify all interested callbacks of a specified change in module state.
1068 * Create the module path.
1112 * Link the module in. We'll pass this info on
1135 struct module *mp;
1201 "module %s\n", mp->filename);
1256 * will already have the module directory suffix
1291 load_primary(struct module *mp, int lmid)
1294 struct module *dmp;
1309 * Get module name.
1378 struct module *mp;
1430 * Return a string listing module dependencies.
1433 depends_on(struct module *mp)
1439 * The module doesn't have a depends_on value, so let's try it the
1466 struct module *mp;
1467 mp = (struct module *)xmp;
1482 kobj_export_ksyms(struct module *mp)
1488 struct module *omp;
1495 * Make a copy of the original module structure.
1497 omp = kobj_alloc(sizeof (struct module), KM_WAIT);
1498 bcopy(mp, omp, sizeof (struct module));
1614 * Discard the old symbol table and our copy of the module strucure.
1618 kobj_free(omp, sizeof (struct module));
1622 kobj_export_ctf(struct module *mp)
1643 kobj_export_module(struct module *mp)
1652 process_dynamic(struct module *mp, char *dyndata, char *strdata)
1733 do_dynamic(struct module *mp, struct _buf *file)
1809 kobj_set_ctf(struct module *mp, caddr_t data, size_t size)
1843 struct module *mp = NULL;
1848 mp = kobj_zalloc(sizeof (struct module), KM_WAIT);
1870 * There is no driver module in the ISA specific (suffix)
1871 * subdirectory but there is a module in the parent directory.
1892 _kobj_printf(ops, "%s not an elf module\n",
1907 _kobj_printf(ops, "%s not an elf module for this ISA\n",
1914 * and the module in the parent directory is not our ISA.
1918 cmn_err(CE_CONT, "?NOTICE: %s: 64-bit driver module"
1933 "module\n", modname);
2022 "MT-unsafe module '%s' rejected\n",
2027 "cannot load module '%s'\n",
2034 "module '%s' not found\n",
2081 struct module *mp;
2089 /* Bind new module to its dependents */
2104 * Relocate it. This module may not be part of a link map, so we
2122 module_assign(struct modctl *cp, struct module *mp)
2137 struct module *mp = modp->mod_mp;
2149 * at the module structure any more.
2160 free_module_data(struct module *mp)
2256 get_progbits(struct module *mp, struct _buf *file)
2306 * some architectures may want to load the module on a
2310 * a private hook where the memory they assign the module
2311 * is not the actual place where the module loads.
2315 * 1) the final destination of the module
2317 * loaded module until all the relocations relative to 1
2455 get_syms(struct module *mp, struct _buf *file)
2608 get_ctf(struct module *mp, struct _buf *file)
2674 crypto_es_hash(struct module *mp, char *hash, char *shstrtab)
2709 * Get the .SUNW_signature section for the module, it it exists.
2715 get_signature(struct module *mp, struct _buf *file)
2785 add_dependent(struct module *mp, struct module *dep)
2810 struct module *mp;
2828 * Get module name.
2867 _kobj_printf(ops, "cannot load module '%s'\n",
2898 * Copy the first module name where you detect an error to keep
2916 do_common(struct module *mp)
2948 do_symbols(struct module *mp, Elf64_Addr bss_base)
3097 struct module *mp;
3109 mp = (struct module *)modp->mod_mp;
3128 struct module *mp;
3143 mp = (struct module *)modp->mod_mp;
3172 kobj_lookup(struct module *mod, const char *name)
3185 kobj_searchsym(struct module *mp, uintptr_t value, ulong_t *offset)
3198 return (NULL); /* not in this module */
3204 * Scan the module's symbol table for a symbol <= value
3255 kobj_lookup_all(struct module *mp, char *name, int include_self)
3260 struct module *mmp;
3291 struct module *mp;
3310 lookup_one(struct module *mp, const char *name)
3331 * Lookup a given symbol pointer in the module's symbol hash. If the symbol
3335 sym_lookup(struct module *mp, Sym *ksp)
3351 sym_insert(struct module *mp, char *name, symid_t index)
3357 static struct module *lastmp = NULL;
3397 * Determine if the module exists.
3524 * 1098067: module creds should not be those of the
4053 * The module path can be set in /etc/system via 'moddir' commands
4252 kobj_textwin_alloc(struct module *mp)
4262 * We allocate a read/write mapping for this module's text to allow
4291 kobj_textwin_free(struct module *mp)
4456 struct module *mp = mod->mod_mp;