| /freebsd-12.1/sbin/kldstat/ |
| H A D | kldstat.c | 48 printmod(int modid) in printmod() argument 54 if (modstat(modid, &stat) < 0) in printmod() 55 warn("can't stat module id %d", modid); in printmod() 69 int modid; in printfile() local 94 for (modid = kldfirstmod(fileid); modid > 0; in printfile() 95 modid = modfnext(modid)) in printfile() 96 printmod(modid); in printfile() 156 int modid; in main() local 159 if ((modid = modfind(modname)) < 0) { in main() 168 if (modstat(modid, &stat) < 0) in main() [all …]
|
| /freebsd-12.1/share/examples/kld/syscall/test/ |
| H A D | call.c | 43 int modid, syscall_num; in main() local 47 if ((modid = modfind("sys/syscall")) == -1) in main() 49 if (modstat(modid, &stat) != 0) in main()
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_module.c | 230 module_lookupbyid(int modid) in module_lookupbyid() argument 237 if (mod->id == modid) in module_lookupbyid() 317 if (uap->modid == 0) { in sys_modnext() 325 mod = module_lookupbyid(uap->modid); in sys_modnext() 348 mod = module_lookupbyid(uap->modid); in sys_modfnext() 380 mod = module_lookupbyid(uap->modid); in sys_modstat() 477 mod = module_lookupbyid(uap->modid); in freebsd32_modstat()
|
| H A D | systrace_args.c | 1370 iarg[0] = p->modid; /* int */ in systrace_args() 1377 iarg[0] = p->modid; /* int */ in systrace_args() 1385 iarg[0] = p->modid; /* int */ in systrace_args()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/ |
| H A D | DynamicLoaderHexagonDYLD.cpp | 589 int modid = ReadInt(m_process, link_map + metadata.modid_offset); in GetThreadLocalData() local 590 if (modid == -1) in GetThreadLocalData() 600 addr_t dtv_slot = dtv + metadata.dtv_slot_size * modid; in GetThreadLocalData() 609 mod->GetObjectName().AsCString(""), link_map, tp, modid, in GetThreadLocalData()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
| H A D | DynamicLoaderPOSIXDYLD.cpp | 681 int64_t modid = ReadUnsignedIntWithSizeInBytes( in GetThreadLocalData() local 683 if (modid == -1) in GetThreadLocalData() 693 addr_t dtv_slot = dtv + metadata.dtv_slot_size * modid; in GetThreadLocalData() 702 (int64_t)modid, tls_block); in GetThreadLocalData()
|
| /freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_bridge/ |
| H A D | bridge_sys.c | 84 int fileid, modid; in bridge_kmod_load() local 92 for (modid = kldfirstmod(fileid); modid > 0; in bridge_kmod_load() 93 modid = modfnext(modid)) { in bridge_kmod_load() 95 if (modstat(modid, &mstat) < 0) in bridge_kmod_load()
|
| /freebsd-12.1/sbin/ifconfig/ |
| H A D | ifconfig.c | 1442 int i, fileid, modid; in ifmaybeload() local 1483 for (modid = kldfirstmod(fileid); modid > 0; in ifmaybeload() 1484 modid = modfnext(modid)) { in ifmaybeload() 1485 if (modstat(modid, &mstat) < 0) in ifmaybeload()
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_module.c | 1145 int modid; in dt_module_update() local 1295 for (modid = kldfirstmod(k_stat->id); modid > 0; in dt_module_update() 1296 modid = modnext(modid)) { in dt_module_update() 1297 if (modstat(modid, &ms) != 0) { in dt_module_update() 1299 modid, k_stat->name, strerror(errno)); in dt_module_update()
|
| /freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_wlan/ |
| H A D | wlan_sys.c | 126 int fileid, modid; in wlan_kmod_load() local 131 for (modid = kldfirstmod(fileid); modid > 0; in wlan_kmod_load() 132 modid = modfnext(modid)) { in wlan_kmod_load() 133 if (modstat(modid, &mstat) < 0) in wlan_kmod_load()
|
| /freebsd-12.1/sys/compat/freebsd32/ |
| H A D | freebsd32_systrace_args.c | 1336 iarg[0] = p->modid; /* int */ in systrace_args() 1343 iarg[0] = p->modid; /* int */ in systrace_args() 1351 iarg[0] = p->modid; /* int */ in systrace_args()
|
| H A D | freebsd32_proto.h | 264 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member
|
| /freebsd-12.1/sys/sys/ |
| H A D | sysproto.h | 742 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member 745 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member 749 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member
|