Lines Matching refs:len
139 sysctlname(int *oid, int nlen, char *name, size_t len)
150 if (sysctl(mib, nlen + 2, name, &len, 0, 0) == -1)
179 size_t len;
183 len = sizeof(mib) / sizeof(int);
184 if (sysctlnametomib(buf, mib, &len) == -1)
187 if (len != 4)
191 if (sysctl(mib, len, obuf, obuflen, NULL, 0) == -1)
200 size_t len;
202 len = sizeof(sensor->desc);
203 update_sensor_sysctl(sensor->desc, &len, idx, "%desc");
205 len = sizeof(sensor->location);
206 update_sensor_sysctl(sensor->location, &len, idx, "%location");
208 len = sizeof(sensor->pnpinfo);
209 update_sensor_sysctl(sensor->pnpinfo, &len, idx, "%pnpinfo");
211 len = sizeof(sensor->parent);
212 update_sensor_sysctl(sensor->parent, &len, idx, "%parent");
219 size_t len;
226 len = sizeof(temp);
227 if (update_sensor_sysctl(&temp, &len, idx, "temperature") != 0)
252 size_t len, nextlen, rootlen;
276 len = rootlen;
283 if (sysctlgetnext(oid, len, NULL, &nextlen) == -1) {
296 if (sysctlgetnext(oid, len, next, &nextlen) == -1) {
318 len = nextlen / sizeof(int);
321 if (sysctlname(oid, len, buf, sizeof(buf)) != 0)
386 value->var.len = sub + 1;
390 if (value->var.len - sub != 1)