Lines Matching defs:indx

367 	int indx, type, state, intval, len;
387 if ((indx = findname(string, "top", &bufp, &toplist)) == -1)
389 mib[0] = indx;
390 if (indx == CTL_VFS)
392 if (indx == CTL_DEBUG)
394 lp = &secondlevel[indx];
396 warnx("%s: class is not implemented", topname[indx].ctl_name);
400 listall(topname[indx].ctl_name, lp);
403 if ((indx = findname(string, "second", &bufp, lp)) == -1)
405 mib[1] = indx;
406 type = lp->list[indx].ctl_type;
1349 int indx;
1358 if ((indx = findname(string, "third", bufpp, vfsvars)) == -1)
1363 mib[3] = indx;
1386 int indx;
1397 if ((indx = findname(string, "third", bufpp, lp)) == -1)
1401 mib[2] = indx;
1402 *typep = lp->list[indx].ctl_type;
1415 int indx;
1421 if ((indx = findname(string, "third", bufpp, &fslist)) == -1)
1423 mib[2] = indx;
1424 *typep = fslist.list[indx].ctl_type;
1439 int indx;
1445 if ((indx = findname(string, "third", bufpp, &bioslist)) == -1)
1447 mib[2] = indx;
1448 if (indx == BIOS_DISKINFO) {
1455 for (indx = 0; indx < 256; indx++) {
1457 string, indx);
1474 *typep = bioslist.list[indx].ctl_type;
1489 int indx;
1495 if ((indx = findname(string, "third", bufpp, &swpenclist)) == -1)
1497 mib[2] = indx;
1498 *typep = swpenclist.list[indx].ctl_type;
1806 int indx;
1815 if ((indx = findname(string, "third", bufpp, &nchstatslist)) == -1)
1817 mib[2] = indx;
1830 switch (indx) {
1877 int indx;
1883 if ((indx = findname(string, "third", bufpp, &ttylist)) == -1)
1885 mib[2] = indx;
1887 if ((*typep = ttylist.list[indx].ctl_type) == CTLTYPE_STRUCT) {
1904 int indx;
1912 if ((indx = findname(string, "third", bufpp, &forkstatlist)) == -1)
1926 switch (indx) {
1961 int indx, stor, i;
1971 if ((indx = findname(string, "third", bufpp, &kernmalloclist)) == -1)
1973 mib[2] = indx;
2071 int indx, bwx;
2080 if ((indx = findname(string, "third", bufpp, &chipsetlist)) == -1)
2082 mib[2] = indx;
2128 int indx;
2134 if ((indx = findname(string, "third", bufpp, &inetlist)) == -1)
2136 mib[2] = indx;
2137 if (indx < IPPROTO_MAXID && inetvars[indx].list != NULL)
2138 lp = &inetvars[indx];
2149 if ((indx = findname(string, "fourth", bufpp, lp)) == -1)
2151 mib[3] = indx;
2152 *typep = lp->list[indx].ctl_type;
2264 int indx;
2270 if ((indx = findname(string, "third", bufpp, &inet6list)) == -1)
2272 mib[2] = indx;
2273 if (indx < IPV6PROTO_MAXID && inet6vars[indx].list != NULL)
2274 lp = &inet6vars[indx];
2285 if ((indx = findname(string, "fourth", bufpp, lp)) == -1)
2287 mib[3] = indx;
2288 *typep = lp->list[indx].ctl_type;
2321 int indx;
2327 if ((indx = findname(string, "third", bufpp, &netunixlist)) == -1)
2329 mib[2] = indx;
2330 *typep = netunixname[indx].ctl_type;
2332 if (indx < NET_UNIX_MAXID && netunixvars[indx].list != NULL)
2333 lp = &netunixvars[indx];
2341 if ((indx = findname(string, "fourth", bufpp, lp)) == -1)
2343 mib[3] = indx;
2344 *typep = lp->list[indx].ctl_type;
2360 int indx;
2366 if ((indx = findname(string, "third", bufpp, &netlinklist)) == -1)
2368 mib[2] = indx;
2369 if (indx < NET_LINK_MAXID && netlinkvars[indx].list != NULL)
2370 lp = &netlinkvars[indx];
2381 if ((indx = findname(string, "fourth", bufpp, lp)) == -1)
2383 mib[3] = indx;
2384 *typep = lp->list[indx].ctl_type;
2392 int indx;
2398 if ((indx = findname(string, "third", bufpp, &bpflist)) == -1)
2400 mib[2] = indx;
2413 int indx;
2419 if ((indx = findname(string, "third", bufpp, &mplslist)) == -1)
2421 mib[2] = indx;
2422 *typep = mplslist.list[indx].ctl_type;
2445 int indx;
2451 if ((indx = findname(string, "third", bufpp, &pipexlist)) == -1)
2453 mib[2] = indx;
2454 *typep = pipexlist.list[indx].ctl_type;
2478 int indx;
2484 if ((indx = findname(string, "third", bufpp, &semlist)) == -1)
2486 mib[2] = indx;
2497 int indx;
2503 if ((indx = findname(string, "third", bufpp, &shmlist)) == -1)
2505 mib[2] = indx;
2517 int indx;
2523 if ((indx = findname(string, "third", bufpp, &watchdoglist)) == -1)
2525 mib[2] = indx;
2526 *typep = watchdoglist.list[indx].ctl_type;
2537 int indx;
2543 if ((indx = findname(string, "third", bufpp, &tclist)) == -1)
2545 mib[2] = indx;
2546 *typep = tclist.list[indx].ctl_type;
2878 int indx;
2884 if ((indx = findname(string, "third", bufpp, &audiolist)) == -1)
2886 mib[2] = indx;
2887 *typep = audiolist.list[indx].ctl_type;
2897 int indx;
2903 if ((indx = findname(string, "third", bufpp, &videolist)) == -1)
2905 mib[2] = indx;
2906 *typep = videolist.list[indx].ctl_type;
2916 int indx;
2922 if ((indx = findname(string, "third", bufpp, &witnesslist)) == -1)
2924 mib[2] = indx;
2925 *typep = witnesslist.list[indx].ctl_type;
2936 int indx;
2942 if ((indx = findname(string, "third", bufpp, &batterylist)) == -1)
2944 mib[2] = indx;
2945 *typep = batterylist.list[indx].ctl_type;