/freebsd/sys/kern/ |
H A D | kern_module.c | 58 #define MOD_EVENT(mod, type) (mod)->handler((mod), (type), (mod)->arg) argument 94 module_t mod; in module_shutdown() local 111 module_t mod; in module_register_init() local 140 TAILQ_REMOVE(&mod->file->modules, mod, flink); in module_register_init() 141 TAILQ_INSERT_HEAD(&mod->file->modules, mod, flink); in module_register_init() 187 mod->refs++; in module_reference() 201 mod->refs--; in module_release() 205 TAILQ_REMOVE(&mod->file->modules, mod, flink); in module_release() 213 module_t mod; in module_lookupbyname() local 308 module_t mod; in sys_modnext() local [all …]
|
/freebsd/sys/sys/ |
H A D | sdt.h | 91 #define SDT_PROBE_DEFINE(prov, mod, func, name) argument 108 #define SDT_PROBE0(prov, mod, func, name) argument 154 sdt_##prov##_##mod##_##func##_##name 172 .mod = #_mod, \ 207 SDT_PROBE_DEFINE(prov, mod, func, name) 210 SDT_PROBE_DEFINE(prov, mod, func, name); \ 214 SDT_PROBE_DEFINE(prov, mod, func, name); \ 219 SDT_PROBE_DEFINE(prov, mod, func, name); \ 225 SDT_PROBE_DEFINE(prov, mod, func, name); \ 261 SDT_PROBE_DEFINE(prov, mod, func, name) [all …]
|
H A D | pmckern.h | 101 #define PMC_SOFT_DEFINE_EX(prov, mod, func, name, alloc, release) \ argument 102 struct pmc_soft pmc_##prov##_##mod##_##func##_##name = \ 103 { 0, alloc, release, { #prov "_" #mod "_" #func "." #name, 0 } }; \ 104 SYSINIT(pmc_##prov##_##mod##_##func##_##name##_init, SI_SUB_KDTRACE, \ 106 &pmc_##prov##_##mod##_##func##_##name ); \ 107 SYSUNINIT(pmc_##prov##_##mod##_##func##_##name##_uninit, \ 109 &pmc_##prov##_##mod##_##func##_##name ) 111 #define PMC_SOFT_DEFINE(prov, mod, func, name) \ argument 112 PMC_SOFT_DEFINE_EX(prov, mod, func, name, NULL, NULL) 114 #define PMC_SOFT_DECLARE(prov, mod, func, name) \ argument [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-select-words.mk | 12 all: mod-squarebrackets mod-S-W mod-C-W mod-tW-tw 27 mod-squarebrackets: mod-squarebrackets-0-star-at \ 28 mod-squarebrackets-hash \ 29 mod-squarebrackets-n \ 31 mod-squarebrackets-nested \ 32 mod-squarebrackets-space 55 mod-squarebrackets-hash: 69 mod-squarebrackets-n: 142 mod-C-W: 149 mod-S-W: [all …]
|
H A D | moderrs.mk | 14 all: mod-unknown-direct mod-unknown-indirect 20 all: mod-subst-delimiter 21 all: mod-regex-delimiter 22 all: mod-ts-parse 23 all: mod-t-parse 24 all: mod-ifelse-parse 25 all: mod-remember-parse 26 all: mod-sysv-parse 28 mod-unknown-direct: print-header print-footer 121 mod-ts-parse: print-header print-footer [all …]
|
/freebsd/sbin/fsck_msdosfs/ |
H A D | check.c | 53 int mod = 0; in checkfilesys() local 97 if (mod & FSFATAL) { in checkfilesys() 107 if (mod & FSFATAL) in checkfilesys() 112 if (mod & FSFATAL) in checkfilesys() 119 if (mod & FSFATAL) in checkfilesys() 123 if (mod & FSFATMOD) { in checkfilesys() 126 if (mod & FSFATAL) in checkfilesys() 129 mod |= FSERROR; in checkfilesys() 161 if (mod && (mod & FSERROR) == 0) { in checkfilesys() 162 if (mod & FSDIRTY) { in checkfilesys() [all …]
|
H A D | dir.c | 559 int mod = FSOK; in readDosDirSection() local 658 mod |= FSERROR; in readDosDirSection() 820 mod |= THISMOD; in readDosDirSection() 895 mod |= FSERROR; in readDosDirSection() 1001 mod |= THISMOD; in readDosDirSection() 1019 mod &= ~THISMOD; in readDosDirSection() 1039 mod &= ~THISMOD; in readDosDirSection() 1047 int mod; in handleDirTree() local 1050 if (mod & FSFATAL) in handleDirTree() 1071 if (mod & FSFATAL) in handleDirTree() [all …]
|
/freebsd/sys/tests/ |
H A D | ktest.c | 135 struct ktest_module *mod; in dump_tests() local 145 TAILQ_FOREACH(mod, &module_list, entries) { in dump_tests() 166 struct ktest_module *mod; in run_test() local 186 TAILQ_FOREACH(mod, &module_list, entries) { in run_test() 203 refcount_acquire(&mod->refcount); in run_test() 234 refcount_release(&mod->refcount); in run_test() 249 struct ktest_module *mod = malloc(sizeof(*mod), M_TEMP, M_WAITOK | M_ZERO); in register_test_module() local 251 mod->info = info; in register_test_module() 252 info->module_ptr = mod; in register_test_module() 266 TAILQ_REMOVE(&module_list, mod, entries); in unregister_test_module() [all …]
|
/freebsd/lib/libc/net/ |
H A D | nsdispatch.c | 484 ns_mod mod; in nss_load_module() local 487 memset(&mod, 0, sizeof(mod)); in nss_load_module() 534 mod.mtab = fn(mod.name, &mod.mtabsize, &mod.unregister); in nss_load_module() 535 if (mod.mtab == NULL || mod.mtabsize == 0) { in nss_load_module() 538 mod.handle = NULL; in nss_load_module() 543 qsort(mod.mtab, mod.mtabsize, sizeof(mod.mtab[0]), in nss_load_module() 556 free(mod->name); in ns_mod_free() 560 mod->unregister(mod->mtab, mod->mtabsize); in ns_mod_free() 592 ns_mod *mod; in nss_method_lookup() local 604 if (mod != NULL && mod->handle != NULL) { in nss_method_lookup() [all …]
|
/freebsd/contrib/ofed/libibmad/ |
H A D | smp.c | 61 unsigned mod, unsigned timeout, int *rstatus, in smp_set_status_via() argument 77 rpc.attr.mod = mod; in smp_set_status_via() 93 unsigned mod, unsigned timeout, in smp_set_via() argument 96 return smp_set_status_via(data, portid, attrid, mod, timeout, NULL, in smp_set_via() 101 unsigned mod, unsigned timeout) in smp_set() argument 103 return smp_set_via(data, portid, attrid, mod, timeout, ibmp); in smp_set() 107 unsigned attrid, unsigned mod, unsigned timeout, in smp_query_status_via() argument 116 rpc.attr.mod = mod; in smp_query_status_via() 139 unsigned mod, unsigned timeout, in smp_query_via() argument 147 unsigned mod, unsigned timeout) in smp_query() argument [all …]
|
H A D | cc.c | 50 unsigned attrid, unsigned mod, unsigned timeout, in cc_query_status_via() argument 57 DEBUG("attr 0x%x mod 0x%x route %s", attrid, mod, portid2str(portid)); in cc_query_status_via() 60 rpc.attr.mod = mod; in cc_query_status_via() 85 unsigned attrid, unsigned mod, unsigned timeout, in cc_config_status_via() argument 92 DEBUG("attr 0x%x mod 0x%x route %s", attrid, mod, portid2str(portid)); in cc_config_status_via() 95 rpc.attr.mod = mod; in cc_config_status_via()
|
/freebsd/share/i18n/esdb/UTF/ |
H A D | Makefile | 6 UTF-16-mod= UTF1632 8 UTF-16BE-mod= UTF1632 10 UTF-16LE-mod= UTF1632 12 UTF-16-INTERNAL-mod= UTF1632 14 UTF-16-SWAPPED-mod= UTF1632 16 UTF-32-mod= UTF1632 18 UTF-32BE-mod= UTF1632 20 UTF-32LE-mod= UTF1632 24 UTF-32-SWAPPED-mod= UTF1632 26 UTF-8-mod= UTF8 [all …]
|
/freebsd/contrib/unbound/services/ |
H A D | modstack.c | 95 stack->mod = NULL; in modstack_init() 115 if(!stack->mod) { in modstack_config() 120 stack->mod[i] = module_factory(&module_conf); in modstack_config() 121 if(!stack->mod[i]) { in modstack_config() 239 i, stack->mod[i]->name); 256 (*stack->mod[i]->deinit)(env, i); 259 free(stack->mod); 260 stack->mod = NULL; 268 if(strcmp(stack->mod[i]->name, name) == 0) 280 mods.mod[m]->get_mem)); [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_options.c | 104 const char *s, *mod, *opt, *val; in _archive_set_options() local 119 mod = opt = val = NULL; in _archive_set_options() 121 parse_option(&s, &mod, &opt, &val); in _archive_set_options() 122 if (mod == NULL && opt != NULL && in _archive_set_options() 132 r = use_option(a, mod, opt, val); in _archive_set_options() 146 "Unknown module name: `%s'", mod); in _archive_set_options() 154 mod?mod:"", mod?":":"", opt); in _archive_set_options() 171 const char *end, *mod, *opt, *val; in parse_option() local 175 mod = NULL; in parse_option() 197 mod = opt; in parse_option() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_libignore.cpp | 58 for (const auto &mod : modules) { in OnLibraryLoaded() local 59 for (const auto &range : mod.ranges()) { in OnLibraryLoaded() 62 if (!TemplateMatch(lib->templ, mod.full_name()) && in OnLibraryLoaded() 64 internal_strcmp(lib->real_name, mod.full_name()) == 0)) in OnLibraryLoaded() 69 SanitizerToolName, lib->templ, lib->name, mod.full_name()); in OnLibraryLoaded() 78 lib->templ, mod.full_name()); in OnLibraryLoaded() 80 lib->name = internal_strdup(mod.full_name()); in OnLibraryLoaded() 100 for (const auto &mod : modules) { in OnLibraryLoaded() local 101 if (!mod.instrumented()) in OnLibraryLoaded() 103 for (const auto &range : mod.ranges()) { in OnLibraryLoaded() [all …]
|
H A D | sanitizer_symbolizer.cpp | 47 void AddressInfo::FillModuleInfo(const LoadedModule &mod) { in FillModuleInfo() argument 48 module = internal_strdup(mod.full_name()); in FillModuleInfo() 49 module_offset = address - mod.base_address(); in FillModuleInfo() 50 module_arch = mod.arch(); in FillModuleInfo() 51 if (mod.uuid_size()) in FillModuleInfo() 52 internal_memcpy(uuid, mod.uuid(), mod.uuid_size()); in FillModuleInfo() 53 uuid_size = mod.uuid_size(); in FillModuleInfo()
|
/freebsd/contrib/mandoc/ |
H A D | tbl_layout.c | 74 mod: in mods() 106 goto mod; in mods() 112 goto mod; in mods() 115 goto mod; in mods() 118 goto mod; in mods() 123 goto mod; in mods() 126 goto mod; in mods() 133 goto mod; in mods() 136 goto mod; in mods() 139 goto mod; in mods() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/stats/ |
H A D | stats.cpp | 65 const LoadedModule *mod = Symbolizer::GetOrInit()->FindModuleForAddress( in WriteModuleReport() local 67 WriteToFile(stats_fd, mod->full_name(), in WriteModuleReport() 68 internal_strlen(mod->full_name()) + 1); in WriteModuleReport() 74 WriteLE(stats_fd, s->addr - mod->base_address()); in WriteModuleReport() 86 unsigned __sanitizer_stats_register(StatModule **mod) { in __sanitizer_stats_register() argument 88 modules.push_back(mod); in __sanitizer_stats_register() 104 for (StatModule **mod : modules) { in WriteFullReport() 105 if (!mod) in WriteFullReport() 107 WriteModuleReport(mod); in WriteFullReport()
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_blind.c | 20 BIGNUM *mod; /* just a reference */ member 34 bn_check_top(mod); in BN_BLINDING_new() 61 if ((ret->mod = BN_dup(mod)) == NULL) in BN_BLINDING_new() 64 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_BLINDING_new() 65 BN_set_flags(ret->mod, BN_FLG_CONSTTIME); in BN_BLINDING_new() 88 BN_free(r->mod); in BN_BLINDING_free() 116 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx) in BN_BLINDING_update() 117 || !BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) in BN_BLINDING_update() 157 ret = BN_mod_mul(n, n, b->A, b->mod, ctx); in BN_BLINDING_convert_ex() 197 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | lto.h | 247 lto_module_dispose(lto_module_t mod); 255 lto_module_get_target_triple(lto_module_t mod); 263 lto_module_set_target_triple(lto_module_t mod, const char *triple); 271 lto_module_get_num_symbols(lto_module_t mod); 279 lto_module_get_symbol_name(lto_module_t mod, unsigned int index); 298 lto_module_get_linkeropts(lto_module_t mod); 311 extern lto_bool_t lto_module_get_macho_cputype(lto_module_t mod, 324 extern lto_bool_t lto_module_has_ctor_dtor(lto_module_t mod); 404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); 415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod); [all …]
|
/freebsd/stand/efi/boot1/ |
H A D | proto.c | 133 const boot_module_t *mod; in load_loader() local 136 mod = boot_modules[i]; in load_loader() 137 for (dev = mod->devices(); dev != NULL; dev = dev->next) { in load_loader() 141 if (mod->load(PATH_LOADER_EFI, dev, bufp, bufsize) == in load_loader() 144 *modp = mod; in load_loader() 162 const boot_module_t *mod; in choice_protocol() local 212 status = load_loader(&mod, &dev, &loaderbuf, &loadersize, 1); in choice_protocol() 214 status = load_loader(&mod, &dev, &loaderbuf, &loadersize, 0); in choice_protocol() 221 try_boot(mod, dev, loaderbuf, loadersize); in choice_protocol()
|
/freebsd/sys/x86/xen/ |
H A D | pv.c | 158 struct hvm_modlist_entry *mod; in hammer_time_xen() local 192 mod = (struct hvm_modlist_entry *) in hammer_time_xen() 195 physfree = MAX(roundup2(mod[i].paddr + mod[i].size, in hammer_time_xen() 320 struct hvm_modlist_entry *mod; in xen_pvh_parse_preload_data() local 323 mod = (struct hvm_modlist_entry *) in xen_pvh_parse_preload_data() 325 cmdline = mod[0].cmdline_paddr ? in xen_pvh_parse_preload_data() 331 header = (struct xen_header *)(mod[0].paddr + KERNBASE); in xen_pvh_parse_preload_data() 339 preload_metadata = (caddr_t)(mod[0].paddr + in xen_pvh_parse_preload_data() 359 off = mod[0].paddr + header->modulep_offset - metadata + in xen_pvh_parse_preload_data() 362 preload_metadata = (caddr_t)(mod[0].paddr + KERNBASE); in xen_pvh_parse_preload_data() [all …]
|
/freebsd/contrib/libucl/python/src/ |
H A D | uclmodule.c | 299 init_macros(PyObject *mod) in init_macros() argument 301 PyModule_AddIntMacro(mod, UCL_EMIT_JSON); in init_macros() 302 PyModule_AddIntMacro(mod, UCL_EMIT_JSON_COMPACT); in init_macros() 303 PyModule_AddIntMacro(mod, UCL_EMIT_CONFIG); in init_macros() 304 PyModule_AddIntMacro(mod, UCL_EMIT_YAML); in init_macros() 305 PyModule_AddIntMacro(mod, UCL_EMIT_MSGPACK); in init_macros() 324 PyObject *mod = PyModule_Create (&uclmodule); in PyInit_ucl() local 325 init_macros (mod); in PyInit_ucl() 327 return mod; in PyInit_ucl() 332 PyObject *mod = Py_InitModule ("ucl", uclMethods); in initucl() local [all …]
|
/freebsd/stand/kshim/ |
H A D | bsd_kernel.c | 711 const struct module_data *mod; in devclass_find_create() local 718 return (mod); in devclass_find_create() 739 dev->dev_module = mod; in devclass_add_device() 755 if (mod == NULL) { in devclass_delete_device() 772 if (!mod) { in make_device() 925 const struct module_data *mod; in device_allocate_softc() local 927 mod = dev->dev_module; in device_allocate_softc() 930 (mod->driver->size != 0)) { in device_allocate_softc() 945 const struct module_data *mod; in device_probe_and_attach() local 955 mod = dev->dev_module; in device_probe_and_attach() [all …]
|
/freebsd/sys/cddl/dev/sdt/ |
H A D | sdt.c | 138 char mod[DTRACE_MODNAMELEN]; in sdt_create_probe() local 158 if (*probe->mod == 0) { in sdt_create_probe() 159 len = strlcpy(mod, probe->sdtp_lf->filename, sizeof(mod)); in sdt_create_probe() 160 if (len > 3 && strcmp(mod + len - 3, ".ko") == 0) in sdt_create_probe() 161 mod[len - 3] = '\0'; in sdt_create_probe() 163 strlcpy(mod, probe->mod, sizeof(mod)); in sdt_create_probe() 187 if (dtrace_probe_lookup(prov->id, mod, func, name) != DTRACE_IDNONE) in sdt_create_probe() 190 (void)dtrace_probe_create(prov->id, mod, func, name, 1, probe); in sdt_create_probe() 420 sdt_modevent(module_t mod __unused, int type, void *data __unused) in sdt_modevent()
|