/freebsd/sbin/kldconfig/ |
H A D | kldconfig.c | 54 static size_t miblen; variable 84 if (miblen != 0) in getmib() 87 miblen = nitems(mib); in getmib() 88 if (sysctlnametomib(pathctl, mib, &miblen) != 0) in getmib() 104 if (miblen == 0) in getpath() 106 if (sysctl(mib, miblen, NULL, &sz, NULL, 0) == -1) in getpath() 113 if (sysctl(mib, miblen, path, &sz, NULL, 0) == -1) in getpath() 124 if (miblen == 0) in setpath() 130 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1) in setpath()
|
/freebsd/sbin/kldload/ |
H A D | kldload.c | 55 size_t miblen, pathlen; in path_check() local 71 miblen = nitems(mib); in path_check() 72 if (sysctlnametomib(PATHCTL, mib, &miblen) != 0) in path_check() 74 if (sysctl(mib, miblen, NULL, &pathlen, NULL, 0) == -1) in path_check() 80 if (sysctl(mib, miblen, path, &pathlen, NULL, 0) == -1) in path_check()
|
/freebsd/contrib/jemalloc/src/ |
H A D | ctl.c | 50 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ 55 const size_t *mib, size_t miblen, size_t i); 1338 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument 1351 for (i = 0; i < miblen; i++) { in ctl_bymib() 1366 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib() 1376 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() 1475 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1500 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ 1521 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1543 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ [all …]
|
H A D | stats.c | 30 size_t miblen = sizeof(mib) / sizeof(size_t); \ 32 xmallctlnametomib(n, mib, &miblen); \ 34 xmallctlbymib(mib, miblen, (void *)v, &sz, NULL, 0); \ 39 size_t miblen = sizeof(mib) / sizeof(size_t); \ 41 xmallctlnametomib(n, mib, &miblen); \ 44 xmallctlbymib(mib, miblen, (void *)v, &sz, NULL, 0); \ 1331 size_t miblen = sizeof(mib) / sizeof(size_t); in stats_print_helper() local 1337 xmallctlnametomib("arena.0.initialized", mib, &miblen); in stats_print_helper() 1341 xmallctlbymib(mib, miblen, &initialized[i], &sz, in stats_print_helper() 1349 xmallctlbymib(mib, miblen, &destroyed_initialized, &sz, in stats_print_helper()
|
H A D | jemalloc.c | 3672 je_mallctlbymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, in je_mallctlbymib() argument 3686 ret = ctl_bymib(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in je_mallctlbymib()
|
/freebsd/usr.bin/killall/ |
H A D | killall.c | 127 size_t miblen; in main() local 295 miblen = 4; in main() 299 miblen = 4; in main() 303 miblen = 3; in main() 307 st = sysctl(mib, miblen, NULL, &size, NULL, 0); in main() 316 st = sysctl(mib, miblen, procs, &size, NULL, 0); in main()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 100 int ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, 125 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument 126 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | net.c | 442 int *mib_lo, *mib_hi, miblen; in getudpportrange_sysctl() local 449 miblen = sizeof(mib_lo4) / sizeof(mib_lo4[0]); in getudpportrange_sysctl() 453 miblen = sizeof(mib_lo6) / sizeof(mib_lo6[0]); in getudpportrange_sysctl() 457 if (sysctl(mib_lo, miblen, &port_low, &portlen, NULL, 0) < 0) { in getudpportrange_sysctl() 462 if (sysctl(mib_hi, miblen, &port_high, &portlen, NULL, 0) < 0) { in getudpportrange_sysctl()
|
/freebsd/lib/libjail/ |
H A D | jail.c | 875 size_t miblen, desclen; in jailparam_type() local 895 miblen = sizeof(mib) - 2 * sizeof(int); in jailparam_type() 896 if (sysctl(mib, 2, mib + 2, &miblen, desc.s, strlen(desc.s)) < 0) { in jailparam_type() 902 if (kldload_param(name) >= 0 && sysctl(mib, 2, mib + 2, &miblen, in jailparam_type() 921 miblen = sizeof(mib) - 2 * sizeof(int); in jailparam_type() 922 if (sysctl(mib, 2, mib + 2, &miblen, desc.s, in jailparam_type() 930 if (sysctl(mib, (miblen / sizeof(int)) + 2, &desc, &desclen, in jailparam_type() 976 if (sysctl(mib + 2, miblen / sizeof(int), desc.s, &desclen, in jailparam_type() 994 if (sysctl(mib + 2, miblen / sizeof(int), in jailparam_type() 1009 miblen += sizeof(int); in jailparam_type() [all …]
|
/freebsd/usr.bin/posixshmcontrol/ |
H A D | posixshmcontrol.c | 227 size_t len, jailpathlen, miblen; in list_shm() local 274 miblen = nitems(mib); in list_shm() 275 error = sysctlnametomib(listmib, mib, &miblen); in list_shm() 281 error = sysctl(mib, miblen, NULL, &len, NULL, 0); in list_shm() 292 error = sysctl(mib, miblen, buf, &len, NULL, 0); in list_shm()
|
/freebsd/include/ |
H A D | malloc_np.h | 84 int mallctlbymib(const size_t *mib, size_t miblen, void *oldp, 114 int __mallctlbymib(const size_t *mib, size_t miblen, void *oldp,
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mmap.c | 173 static const unsigned int miblen = __arraycount(mib); in ATF_TC_BODY() local 180 ATF_REQUIRE(sysctl(mib, miblen, NULL, &len, NULL, 0) == 0); in ATF_TC_BODY() 183 ATF_REQUIRE(sysctl(mib, miblen, drives, &len, NULL, 0) == 0); in ATF_TC_BODY()
|
/freebsd/contrib/googletest/googletest/src/ |
H A D | gtest-port.cc | 170 u_int miblen = sizeof(mib) / sizeof(mib[0]); 173 if (sysctl(mib, miblen, &info, &size, NULL, 0)) { 191 u_int miblen = sizeof(mib) / sizeof(mib[0]); 195 if (sysctl(mib, miblen, NULL, &size, NULL, 0)) { 203 if (sysctl(mib, miblen, info.data(), &size, NULL, 0)) {
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_dcb.c | 1282 u16 miblen; in i40e_set_dcb_config() local 1297 ret = i40e_dcb_config_to_lldp(lldpmib, &miblen, dcbcfg); in i40e_set_dcb_config() 1298 ret = i40e_aq_set_lldp_mib(hw, mib_type, (void *)lldpmib, miblen, NULL); in i40e_set_dcb_config() 1312 enum i40e_status_code i40e_dcb_config_to_lldp(u8 *lldpmib, u16 *miblen, in i40e_dcb_config_to_lldp() argument 1337 *miblen = offset; in i40e_dcb_config_to_lldp()
|
H A D | i40e_dcb.h | 235 enum i40e_status_code i40e_dcb_config_to_lldp(u8 *lldpmib, u16 *miblen,
|
/freebsd/sys/dev/ice/ |
H A D | ice_dcb.c | 1695 * @miblen: length of LLDP MIB 1700 void ice_dcb_cfg_to_lldp(u8 *lldpmib, u16 *miblen, struct ice_dcbx_cfg *dcbcfg) in ice_dcb_cfg_to_lldp() argument 1722 *miblen = offset; in ice_dcb_cfg_to_lldp() 1736 u16 miblen; in ice_set_dcb_cfg() 1755 ice_dcb_cfg_to_lldp(lldpmib, &miblen, dcbcfg); in ice_set_dcb_cfg() 1756 ret = ice_aq_set_lldp_mib(hw, mib_type, (void *)lldpmib, miblen, in ice_set_dcb_cfg() 1737 u16 miblen; ice_set_dcb_cfg() local
|
H A D | ice_dcb.h | 254 void ice_dcb_cfg_to_lldp(u8 *lldpmib, u16 *miblen, struct ice_dcbx_cfg *dcbcfg);
|
/freebsd/contrib/jemalloc/include/jemalloc/ |
H A D | jemalloc.h | 266 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
|
/freebsd/crypto/openssh/ |
H A D | servconf.c | 849 size_t miblen = sizeof(mib); in valid_rdomain() 864 if (sysctl(mib, 6, &info, &miblen, NULL, 0) == -1) in valid_rdomain()
|