/external/fio/os/ |
os-freebsd.h | 86 int mib[2] = { CTL_HW, HW_PHYSMEM }; local 90 sysctl(mib, 2, &mem, &len, NULL, 0);
|
os-mac.h | 152 int mib[2] = { CTL_HW, HW_PHYSMEM }; local 156 sysctl(mib, 2, &mem, &len, NULL, 0);
|
/prebuilts/go/darwin-x86/src/syscall/ |
mksysctl_openbsd.pl | 8 # Parse the header files for OpenBSD and generate a Go usable sysctl MIB. 10 # Build a MIB with each entry being an array containing the level, type and 12 # We then walk this MIB and create a flattened sysctl name to OID hash. 138 my %mib = (); 146 # Walk the MIB and build a sysctl name to OID mapping. 158 $node = \%mib; 177 # Build MIB 188 $node = \%mib; 210 # Walk down from the top of the MIB. 211 $node = \%mib; [all...] |
/prebuilts/go/linux-x86/src/syscall/ |
mksysctl_openbsd.pl | 8 # Parse the header files for OpenBSD and generate a Go usable sysctl MIB. 10 # Build a MIB with each entry being an array containing the level, type and 12 # We then walk this MIB and create a flattened sysctl name to OID hash. 138 my %mib = (); 146 # Walk the MIB and build a sysctl name to OID mapping. 158 $node = \%mib; 177 # Build MIB 188 $node = \%mib; 210 # Walk down from the top of the MIB. 211 $node = \%mib; [all...] |
/external/jemalloc/src/ |
stats.c | 10 size_t mib[6]; \ 11 size_t miblen = sizeof(mib) / sizeof(size_t); \ 13 xmallctlnametomib(n, mib, &miblen); \ 14 mib[2] = (i); \ 15 xmallctlbymib(mib, miblen, v, &sz, NULL, 0); \ 19 size_t mib[6]; \ 20 size_t miblen = sizeof(mib) / sizeof(size_t); \ 22 xmallctlnametomib(n, mib, &miblen); \ 23 mib[2] = (i); \ 24 mib[4] = (j); [all...] |
/external/dhcpcd-6.8.2/ |
if-bsd.c | 687 int mib[6]; local 694 mib[0] = CTL_NET; 695 mib[1] = PF_ROUTE; 696 mib[2] = 0; 697 mib[3] = AF_INET; 698 mib[4] = NET_RT_DUMP; 699 mib[5] = 0; 701 if (sysctl(mib, 6, NULL, &needed, NULL, 0) == -1) 707 if (sysctl(mib, 6, buf, &needed, NULL, 0) == -1) 1045 int mib[6] local 1352 int mib[2] = { CTL_HW, HW_MACHINE_ARCH }; local 1369 int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, 0 }; local [all...] |
/external/jemalloc/test/integration/ |
rallocx.c | 28 size_t mib[4]; local 32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), 34 mib[2] = ind; 36 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0),
|
xallocx.c | 109 size_t mib[4]; local 113 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), 115 mib[2] = ind; 117 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0),
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_cpu_detect.c | 239 int mib[2], ncpu; local 242 mib[0] = CTL_HW; 243 mib[1] = HW_NCPU; 246 sysctl(mib, 2, &ncpu, &len, NULL, 0);
|
/external/mesa3d/src/mesa/x86/ |
common_x86.c | 141 int mib[2]; 145 mib[0] = CTL_MACHDEP; 146 mib[1] = CPU_SSE; 148 ret = sysctl(mib, 2, &enabled, &len, NULL, 0);
|
/ndk/sources/cxx-stl/stlport/src/details/ |
fstream_unistd.cpp | 134 int mib[2]; local 136 mib[0] = CTL_HW; 137 mib[1] = HW_PAGESIZE; 139 sysctl(mib, 2, &pagesize, &len, NULL, 0);
|
/external/libevent/ |
arc4random.c | 180 int mib[] = { CTL_KERN, KERN_RANDOM, RANDOM_UUID }; local 191 if (0 != sysctl(mib, 3, &buf[len], &n, NULL, 0)) 217 int mib[] = { CTL_KERN, KERN_ARND }; local 225 if (sysctl(mib, 2, buf, &len, NULL, 0) == -1) { 230 if (sysctl(mib, 2, &buf[len], &n, NULL, 0) == -1)
|
/external/avahi/avahi-core/ |
iface-pfroute.c | 455 int mib[6]; local 462 mib[0] = CTL_NET; 463 mib[1] = PF_ROUTE; 464 mib[2] = 0; /* protocol */ 465 mib[3] = 0; /* wildcard address family */ 466 mib[4] = NET_RT_IFLIST; 467 mib[5] = 0; /* no flags */ 468 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) 479 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) {
|
/external/opencv3/modules/core/src/ |
parallel.cpp | 516 int mib[4]; 519 /* set the mib for hw.ncpu */ 520 mib[0] = CTL_HW; 521 mib[1] = HW_AVAILCPU; // alternatively, try HW_NCPU; 524 sysctl(mib, 2, &numCPU, &len, NULL, 0); 528 mib[1] = HW_NCPU; 529 sysctl( mib, 2, &numCPU, &len, NULL, 0 );
|
/external/libcxx/src/ |
thread.cpp | 75 int mib[2] = {CTL_HW, HW_NCPU}; variable 77 sysctl(mib, 2, &n, &s, 0, 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ |
thread.cpp | 74 int mib[2] = {CTL_HW, HW_NCPU}; variable 76 sysctl(mib, 2, &n, &s, 0, 0);
|
/toolchain/binutils/binutils-2.25/ld/testsuite/ld-ia64/ |
undefined.s | 28 .mib 40 .mib
|
tlsbinpic.s | 44 .mib
|
/external/libchrome/base/time/ |
time_mac.cc | 35 int mib[2] = {CTL_KERN, KERN_BOOTTIME}; local 37 int kr = sysctl(mib, arraysize(mib), &boottime, &size, NULL, 0);
|
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_freebsd.c | 194 int mib[] = { CTL_NET, AF_ROUTE, 0, AF_LINK, NET_RT_IFLIST, 0 }; 196 if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0) 200 if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) {
|
/external/flac/libFLAC/ |
cpu.c | 228 int val = 0, mib[2] = { CTL_MACHDEP, CPU_SSE }; 230 if(sysctl(mib, 2, &val, &len, NULL, 0) < 0 || !val) 233 mib[1] = CPU_SSE2; 235 if(sysctl(mib, 2, &val, &len, NULL, 0) < 0 || !val) {
|
/external/google-breakpad/src/client/mac/handler/ |
dynamic_images.cc | 560 int mib[CTL_MAXNAME]; local 562 int err = sysctlnametomib("sysctl.proc_cputype", mib, &mibLen); 565 pid_for_task(task, &mib[mibLen]); 570 sysctl(mib, static_cast<u_int>(mibLen), &cpu_type, &cpuTypeSize, 0, 0);
|
/external/jemalloc/include/jemalloc/ |
jemalloc_protos.h | 48 JEMALLOC_EXPORT int JEMALLOC_NOTHROW je_mallctlbymib(const size_t *mib,
|
jemalloc_protos_jet.h | 48 JEMALLOC_EXPORT int JEMALLOC_NOTHROW jet_mallctlbymib(const size_t *mib,
|
/external/avahi/avahi-autoipd/ |
main.c | 583 int mib[6]; local 591 mib[0] = CTL_NET; 592 mib[1] = PF_ROUTE; 593 mib[2] = 0; 594 mib[3] = 0; 595 mib[4] = NET_RT_IFLIST; 596 mib[5] = ifindex; 598 if (sysctl(mib, elementsof(mib), NULL, &len, NULL, 0) != 0) { 605 if (sysctl(mib, elementsof(mib), buf, &len, NULL, 0) != 0) [all...] |