/freebsd/tests/sys/kern/ |
H A D | module_test.c | 38 int modid; in ATF_TC_BODY() local 41 modid = modfind("rootbus"); in ATF_TC_BODY() 42 ATF_REQUIRE(modid > 0); in ATF_TC_BODY() 44 modid = modfind("nonexistent_module"); in ATF_TC_BODY() 45 ATF_REQUIRE(modid == -1); in ATF_TC_BODY() 52 int modid; in ATF_TC_BODY() local 55 modid = modnext(-1); in ATF_TC_BODY() 56 ATF_REQUIRE(modid == -1); in ATF_TC_BODY() 59 modid = modnext(0); in ATF_TC_BODY() 60 ATF_REQUIRE(modid > 0); in ATF_TC_BODY() [all …]
|
/freebsd/sbin/kldstat/ |
H A D | kldstat.c | 50 printmod(int modid) in printmod() argument 56 if (modstat(modid, &stat) < 0) { in printmod() 57 warn("can't stat module id %d", modid); in printmod() 72 int modid; in printfile() local 95 for (modid = kldfirstmod(fileid); modid > 0; modid = modfnext(modid)) in printfile() 96 printmod(modid); in printfile() 117 int c, modid; in main() local 158 if ((modid = modfind(modname)) < 0) { in main() 166 if (modstat(modid, &stat) < 0) in main() 167 warn("can't stat module id %d", modid); in main()
|
/freebsd/share/examples/kld/syscall/test/ |
H A D | call.c | 41 int modid, syscall_num; in main() local 45 if ((modid = modfind("sys/syscall")) == -1) in main() 47 if (modstat(modid, &stat) != 0) in main()
|
/freebsd/sbin/pfctl/tests/ |
H A D | pfctl_test.c | 71 int modid; in check_pf_module_available() local 74 if ((modid = modfind("pf")) < 0) { in check_pf_module_available() 79 if (modstat(modid, &stat) < 0) { in check_pf_module_available() 80 warn("can't stat pf module id %d", modid); in check_pf_module_available()
|
/freebsd/sys/kern/ |
H A D | kern_module.c | 227 module_lookupbyid(int modid) in module_lookupbyid() argument 234 if (mod->id == modid) in module_lookupbyid() 314 if (uap->modid == 0) { in sys_modnext() 322 mod = module_lookupbyid(uap->modid); in sys_modnext() 345 mod = module_lookupbyid(uap->modid); in sys_modfnext() 387 mod = module_lookupbyid(uap->modid); in sys_modstat() 511 mod = module_lookupbyid(uap->modid); in freebsd32_modstat()
|
H A D | systrace_args.c | 1357 iarg[a++] = p->modid; /* int */ in systrace_args() 1364 iarg[a++] = p->modid; /* int */ in systrace_args() 1372 iarg[a++] = p->modid; /* int */ in systrace_args()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/ |
H A D | DynamicLoaderHexagonDYLD.cpp | 574 int modid = ReadInt(m_process, link_map + metadata.modid_offset); in GetThreadLocalData() local 575 if (modid == -1) in GetThreadLocalData() 585 addr_t dtv_slot = dtv + metadata.dtv_slot_size * modid; in GetThreadLocalData() 594 mod->GetObjectName().AsCString(""), link_map, tp, modid, tls_block); in GetThreadLocalData()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_sys.c | 82 int fileid, modid; in bridge_kmod_load() local 90 for (modid = kldfirstmod(fileid); modid > 0; in bridge_kmod_load() 91 modid = modfnext(modid)) { in bridge_kmod_load() 93 if (modstat(modid, &mstat) < 0) in bridge_kmod_load()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
H A D | DynamicLoaderPOSIXDYLD.cpp | 787 int64_t modid = ReadUnsignedIntWithSizeInBytes( in GetThreadLocalData() local 789 if (modid == -1) { in GetThreadLocalData() 803 addr_t dtv_slot = dtv + metadata.dtv_slot_size * modid; in GetThreadLocalData() 811 (int64_t)modid, tls_block); in GetThreadLocalData()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_module.c | 1140 int modid; in dt_module_update() local 1274 for (modid = kldfirstmod(k_stat->id); modid > 0; in dt_module_update() 1275 modid = modnext(modid)) { in dt_module_update() 1276 if (modstat(modid, &ms) != 0) { in dt_module_update() 1278 modid, k_stat->name, strerror(errno)); in dt_module_update()
|
/freebsd/sbin/ifconfig/ |
H A D | ifconfig.c | 1999 int fileid, modid; in ifmaybeload() local 2042 for (modid = kldfirstmod(fileid); modid > 0; in ifmaybeload() 2043 modid = modfnext(modid)) { in ifmaybeload() 2044 if (modstat(modid, &mstat) < 0) in ifmaybeload()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/ |
H A D | wlan_sys.c | 123 int fileid, modid; in wlan_kmod_load() local 128 for (modid = kldfirstmod(fileid); modid > 0; in wlan_kmod_load() 129 modid = modfnext(modid)) { in wlan_kmod_load() 130 if (modstat(modid, &mstat) < 0) in wlan_kmod_load()
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 624 int __sys_modnext(int modid); 625 int __sys_modstat(int modid, struct module_stat * stat); 626 int __sys_modfnext(int modid);
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 1336 iarg[a++] = p->modid; /* int */ in systrace_args() 1343 iarg[a++] = p->modid; /* int */ in systrace_args() 1351 iarg[a++] = p->modid; /* int */ in systrace_args()
|
H A D | freebsd32_proto.h | 270 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member
|
/freebsd/sys/sys/ |
H A D | sysproto.h | 732 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member 735 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member 739 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; member
|