Lines Matching refs:sysctl
35 #include <sys/sysctl.h>
152 error = sysctl(cp_times_mib, 2, NULL, &cp_times_len, NULL, 0);
166 error = sysctl(cp_times_mib, 2, cp_times, &cp_times_len, NULL, 0);
201 if (sysctl(levels_mib, 4, NULL, &len, NULL, 0))
205 if (sysctl(levels_mib, 4, freqstr, &len, NULL, 0)) {
259 if (sysctl(freq_mib, 4, &curfreq, &len, NULL, 0) != 0) {
271 if (sysctl(freq_mib, 4, NULL, NULL, &freq, sizeof(freq))) {
310 warnx("using sysctl for AC line status");
316 warnx("using sysctl for AC line status");
342 warnx("lost devd connection, switching to sysctl");
359 if (sysctl(acline_mib, acline_mib_len, &acline, &len,
458 if (strcmp(arg, "sysctl") == 0)
586 /* Look up various sysctl MIBs. */
655 if (sysctl(freq_mib, 4, &curfreq, &len, NULL, 0) != 0) {