| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | plugin.c | 44 char *modname; member 81 free(map->modname); in free_plugin_mapping() 113 map->modname = k5memdup0(name, namelen, &ret); in make_plugin_mapping() 114 if (map->modname == NULL) in make_plugin_mapping() 136 const char *modname, const char *dyn_path, in register_module() argument 152 return make_plugin_mapping(context, modname, strlen(modname), dyn_path, in register_module() 240 if (strcmp(list[i]->modname, list[j]->modname) == 0) { in make_full_list() 263 if (find_in_list(disable, (*in)->modname)) in remove_disabled_modules() 285 if (strcmp(list[i]->modname, *enable) == 0) { in filter_enabled_modules() 362 if (asprintf(&symname, "%s_%s_initvt", iname, map->modname) < 0) in load_if_needed() [all …]
|
| /freebsd/sys/tools/ |
| H A D | fw_stub.awk | 122 modname = opt_m; 123 gsub(/[-\.]/, "_", modname); 150 modname "_fw_modevent(module_t mod, int type, void *unused)\ 219 static moduledata_t " modname "_fw_mod = {\ 220 \"" modname "_fw\",\ 221 " modname "_fw_modevent,\ 224 DECLARE_MODULE(" modname "_fw, " modname "_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);\ 225 MODULE_VERSION(" modname "_fw, 1);\ 226 MODULE_DEPEND(" modname "_fw, firmware, 1, 1, 1);\
|
| /freebsd/contrib/openpam/bin/openpam_dump_policy/ |
| H A D | openpam_dump_policy.c | 72 char *modname, **opt, *p; in openpam_dump_chain() local 77 modname = strrchr(chain->module->path, '/'); in openpam_dump_chain() 78 modname = strdup(modname ? modname : chain->module->path); in openpam_dump_chain() 79 if (modname == NULL) in openpam_dump_chain() 81 for (p = modname; *p && *p != '.'; ++p) in openpam_dump_chain() 84 printf("extern struct pam_module %s_pam_module;\n", modname); in openpam_dump_chain() 104 printf("\t.module = &%s_pam_module,\n", modname); in openpam_dump_chain() 113 free(modname); in openpam_dump_chain()
|
| /freebsd/contrib/openpam/lib/libpam/ |
| H A D | openpam_dynamic.c | 177 openpam_dynamic(const char *modname) in openpam_dynamic() argument 188 if (strchr(modname, '/') != NULL) { in openpam_dynamic() 195 modname[0] != '/') { in openpam_dynamic() 197 "invalid module name: %s", modname); in openpam_dynamic() 200 return (try_module(modname)); in openpam_dynamic() 206 p = strchr(modname, '\0'); in openpam_dynamic() 215 } else if (*p == '\0' && p >= modname + sizeof PAM_SOEXT && in openpam_dynamic() 231 *path, modname, &dot); in openpam_dynamic() 234 *path, modname, &dot, LIB_MAJ); in openpam_dynamic() 237 *path, modname, PAM_SOEXT, &dot, LIB_MAJ); in openpam_dynamic()
|
| /freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | drti.c | 63 static const char *modname; /* Name of this load object */ variable 78 if (modname == NULL) in dbg_printf() 81 (void) fprintf(stderr, "dtrace DOF %s: ", modname); in dbg_printf() 134 if ((modname = strrchr(lmp->l_name, '/')) == NULL) in dtrace_dof_init() 135 modname = lmp->l_name; in dtrace_dof_init() 137 modname++; in dtrace_dof_init() 163 "%s", modname); in dtrace_dof_init() 166 "LM%lu`%s", lmid, modname); in dtrace_dof_init()
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | kmod.h | 41 char modname[128]; \ 42 snprintf(modname, sizeof(modname), __VA_ARGS__); \ 43 kern_kldload(curthread, modname, NULL); \
|
| /freebsd/sys/kern/ |
| H A D | kern_linker.c | 153 const char *modname, struct linker_file *parent, 553 linker_reference_module(const char *modname, struct mod_depend *verinfo, in linker_reference_module() argument 560 if ((mod = modlist_lookup2(modname, verinfo)) != NULL) { in linker_reference_module() 567 error = linker_load_module(NULL, modname, NULL, verinfo, result); in linker_reference_module() 573 linker_release_module(const char *modname, struct mod_depend *verinfo, in linker_release_module() argument 581 KASSERT(modname != NULL, in linker_release_module() 583 mod = modlist_lookup2(modname, verinfo); in linker_release_module() 590 KASSERT(modname == NULL && verinfo == NULL, in linker_release_module() 1203 const char *kldname, *modname; in kern_kldload() local 1220 modname = NULL; in kern_kldload() [all …]
|
| /freebsd/libexec/flua/ |
| H A D | bootstrap.h | 18 #define FLUA_MODULE_DEF(ident, modname, openfn) \ argument 19 static const luaL_Reg ident = { modname, openfn }; \ 27 #define FLUA_MODULE_DEF(ident, modname, openfn) argument 29 #define FLUA_MODULE(modname) argument
|
| /freebsd/stand/lua/ |
| H A D | config.lua | 866 function config.enableModule(modname) 867 if modules[modname] == nil then 868 modules[modname] = {} 869 elseif modules[modname].load == "YES" then 870 modules[modname].force = true 874 modules[modname].load = "YES" 875 modules[modname].force = true 879 function config.disableModule(modname) 880 if modules[modname] == nil then 882 elseif modules[modname].load ~= "YES" then [all …]
|
| /freebsd/sbin/kldstat/ |
| H A D | kldstat.c | 119 char *modname = NULL; in main() local 136 modname = optarg; in main() 157 if (modname != NULL) { in main() 158 if ((modid = modfind(modname)) < 0) { in main() 160 warn("can't find module %s", modname); in main()
|
| /freebsd/sys/dev/acpica/Osd/ |
| H A D | OsdTable.c | 68 char modname[] = "acpi_dsdt"; in AcpiOsTableOverride() local 80 modname[i + 5] = tolower(ExistingTable->Signature[i]); in AcpiOsTableOverride() 84 acpi_table = preload_search_by_type(modname); in AcpiOsTableOverride()
|
| /freebsd/sys/cddl/dev/fbt/riscv/ |
| H A D | fbt_isa.c | 98 char *modname; in fbt_provide_module_function() local 102 modname = opaque; in fbt_provide_module_function() 147 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function() 189 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function()
|
| /freebsd/sys/cddl/dev/fbt/aarch64/ |
| H A D | fbt_isa.c | 91 char *modname; in fbt_provide_module_function() local 94 modname = opaque; in fbt_provide_module_function() 155 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function() 196 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function()
|
| /freebsd/stand/common/ |
| H A D | module.c | 62 static struct kernel_module * file_findmodule(struct preloaded_file *fp, char *modname, struct mod_… 797 mod_load(char *modname, struct mod_depend *verinfo, int argc, char *argv[]) in mod_load() argument 803 TSENTER2(modname); in mod_load() 804 if (file_havepath(modname)) { in mod_load() 805 printf("Warning: mod_load() called instead of mod_loadkld() for module '%s'\n", modname); in mod_load() 807 return (mod_loadkld(modname, argc, argv)); in mod_load() 810 mp = file_findmodule(NULL, modname, verinfo); in mod_load() 822 filename = mod_searchmodule(modname, verinfo); in mod_load() 825 "can't find '%s'", modname); in mod_load() 919 file_findmodule(struct preloaded_file *fp, char *modname, in file_findmodule() argument [all …]
|
| /freebsd/sys/conf/ |
| H A D | kmod_syms.awk | 4 modname = ARGV[1] 18 smbl, modname > "/dev/stderr"
|
| /freebsd/contrib/lua/src/ |
| H A D | loadlib.c | 553 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument 556 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc() 557 mark = strchr(modname, *LUA_IGMARK); in loadfunc() 560 openfunc = lua_pushlstring(L, modname, mark - modname); in loadfunc() 564 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc() 566 openfunc = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
|
| H A D | lua.c | 220 char *modname = strchr(globname, '='); in dolibrary() local 221 if (modname == NULL) { /* no explicit name? */ in dolibrary() 222 modname = globname; /* module name is equal to global name */ in dolibrary() 223 suffix = strchr(modname, *LUA_IGMARK); /* look for a suffix mark */ in dolibrary() 226 *modname = '\0'; /* global name ends here */ in dolibrary() 227 modname++; /* module name starts after the '=' */ in dolibrary() 230 lua_pushstring(L, modname); in dolibrary()
|
| /freebsd/usr.sbin/ppp/ |
| H A D | netgraph.c | 469 char modname[NG_TYPESIZ + 3]; in ng_Create() local 558 snprintf(modname, sizeof modname, "ng_%s", nodetype); in ng_Create() 560 p->link.name, modname); in ng_Create() 561 loadmodules(LOAD_QUIETLY, modname, NULL); in ng_Create() 624 snprintf(modname, sizeof modname, "ng_%s", nodetype); in ng_Create() 626 p->link.name, modname); in ng_Create() 627 loadmodules(LOAD_QUIETLY, modname, NULL); in ng_Create()
|
| /freebsd/sys/sys/ |
| H A D | socketvar.h | 426 #define ACCEPT_FILTER_DEFINE(modname, filtname, cb, create, destroy, ver) \ argument 427 static struct accept_filter modname##_filter = { \ 433 static moduledata_t modname##_mod = { \ 434 .name = __XSTRING(modname), \ 436 .priv = &modname##_filter, \ 438 DECLARE_MODULE(modname, modname##_mod, SI_SUB_DRIVERS, \ 440 MODULE_VERSION(modname, ver)
|
| /freebsd/sys/contrib/openzfs/module/lua/ |
| H A D | lauxlib.c | 666 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, in luaL_pushmodule() argument 669 lua_getfield(L, -1, modname); /* get _LOADED[modname] */ in luaL_pushmodule() 674 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule() 675 luaL_error(L, "name conflict for module " LUA_QS, modname); in luaL_pushmodule() 677 lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */ in luaL_pushmodule() 742 LUALIB_API void luaL_requiref (lua_State *L, const char *modname, in luaL_requiref() argument 745 lua_pushstring(L, modname); /* argument to open function */ in luaL_requiref() 749 lua_setfield(L, -2, modname); /* _LOADED[modname] = module */ in luaL_requiref() 753 lua_setglobal(L, modname); /* _G[modname] = module */ in luaL_requiref()
|
| /freebsd/sys/cddl/dev/fbt/arm/ |
| H A D | fbt_isa.c | 91 char *modname = opaque; in fbt_provide_module_function() local 119 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function() 164 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function()
|
| /freebsd/usr.sbin/kldxref/ |
| H A D | fileformat | 32 struct string modname; 41 struct string modname;
|
| /freebsd/sys/cddl/dev/fbt/powerpc/ |
| H A D | fbt_isa.c | 107 char *modname = opaque; in fbt_provide_module_function() local 142 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function() 205 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function()
|
| /freebsd/crypto/krb5/src/lib/kadm5/srv/ |
| H A D | server_misc.c | 123 const char *modname = k5_pwqual_name(handle->context, *h); in passwd_check() local 129 "for %s: %s"), modname, in passwd_check()
|
| /freebsd/sys/cddl/dev/fbt/x86/ |
| H A D | fbt_isa.c | 181 char *modname = opaque; in fbt_provide_module_function() local 235 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function() 329 fbt->fbtp_id = dtrace_probe_create(fbt_id, modname, in fbt_provide_module_function()
|