/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/kern/ |
H A D | kern_linker.c | 152 const char *modname, struct linker_file *parent, 552 linker_reference_module(const char *modname, struct mod_depend *verinfo, in linker_reference_module() argument 559 if ((mod = modlist_lookup2(modname, verinfo)) != NULL) { in linker_reference_module() 566 error = linker_load_module(NULL, modname, NULL, verinfo, result); in linker_reference_module() 572 linker_release_module(const char *modname, struct mod_depend *verinfo, in linker_release_module() argument 580 KASSERT(modname != NULL, in linker_release_module() 582 mod = modlist_lookup2(modname, verinfo); in linker_release_module() 589 KASSERT(modname == NULL && verinfo == NULL, in linker_release_module() 1201 const char *kldname, *modname; in kern_kldload() local 1218 modname = NULL; in kern_kldload() [all …]
|
/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/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/tests/sys/opencrypto/ |
H A D | blake2_test.c | 129 test_blake2b_vectors(const char *devname, const char *modname) in test_blake2b_vectors() argument 135 ATF_REQUIRE_KERNEL_MODULE(modname); in test_blake2b_vectors() 153 test_blake2s_vectors(const char *devname, const char *modname) in test_blake2s_vectors() argument 159 ATF_REQUIRE_KERNEL_MODULE(modname); in test_blake2s_vectors()
|
/freebsd/stand/common/ |
H A D | module.c | 61 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/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/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 | 562 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument 565 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc() 566 mark = strchr(modname, *LUA_IGMARK); in loadfunc() 569 openfunc = lua_pushlstring(L, modname, mark - modname); in loadfunc() 573 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc() 575 openfunc = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
|
H A D | lua.c | 216 char *modname = strchr(globname, '='); in dolibrary() local 217 if (modname == NULL) /* no explicit name? */ in dolibrary() 218 modname = globname; /* module name is equal to global name */ in dolibrary() 220 *modname = '\0'; /* global name ends here */ in dolibrary() 221 modname++; /* module name starts after the '=' */ in dolibrary() 224 lua_pushstring(L, modname); in dolibrary()
|
/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/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/contrib/openzfs/module/lua/ |
H A D | lauxlib.c | 665 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, in luaL_pushmodule() argument 668 lua_getfield(L, -1, modname); /* get _LOADED[modname] */ in luaL_pushmodule() 673 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule() 674 luaL_error(L, "name conflict for module " LUA_QS, modname); in luaL_pushmodule() 676 lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */ in luaL_pushmodule() 741 LUALIB_API void luaL_requiref (lua_State *L, const char *modname, in luaL_requiref() argument 744 lua_pushstring(L, modname); /* argument to open function */ in luaL_requiref() 748 lua_setfield(L, -2, modname); /* _LOADED[modname] = module */ in luaL_requiref() 752 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/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/usr.sbin/kldxref/ |
H A D | fileformat | 32 struct string modname; 41 struct string modname;
|
/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()
|
/freebsd/lib/libc/iconv/ |
H A D | citrus_module.c | 262 _citrus_find_getops(_citrus_module_t handle, const char *modname, in _citrus_find_getops() argument 269 modname, ifname); in _citrus_find_getops()
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_auxbus_compat.c | 63 char *modname = KBUILD_MODNAME; in auxiliary_device_init() local 76 ret = dev_set_name(dev, "%s.%s.%d", modname, auxdev->name, auxdev->id); in auxiliary_device_init()
|