MCPcopy Index your code
hub / github.com/F-Stack/f-stack / netisr_load_sysctl_uint

Function netisr_load_sysctl_uint

tools/netstat/netisr.c:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170#endif
171
172static void
173netisr_load_sysctl_uint(const char *name, u_int *p)
174{
175 size_t retlen;
176
177 retlen = sizeof(u_int);
178 if (sysctlbyname(name, p, &retlen, NULL, 0) < 0)
179 xo_err(-1, "%s", name);
180 if (retlen != sizeof(u_int))
181 xo_errx(-1, "%s: invalid len %ju", name, (uintmax_t)retlen);
182}
183
184static void
185netisr_load_sysctl_string(const char *name, char *p, size_t len)

Callers 1

Calls 3

sysctlbynameFunction · 0.85
xo_errFunction · 0.85
xo_errxFunction · 0.85

Tested by

no test coverage detected