MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sys___sysctlbyname

Function sys___sysctlbyname

freebsd/kern/kern_sysctl.c:2343–2357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2341};
2342#endif
2343int
2344sys___sysctlbyname(struct thread *td, struct __sysctlbyname_args *uap)
2345{
2346 size_t rv;
2347 int error;
2348
2349 error = kern___sysctlbyname(td, uap->name, uap->namelen, uap->old,
2350 uap->oldlenp, uap->new, uap->newlen, &rv, 0, 0);
2351 if (error != 0)
2352 return (error);
2353 if (uap->oldlenp != NULL)
2354 error = copyout(&rv, uap->oldlenp, sizeof(rv));
2355
2356 return (error);
2357}
2358
2359/*
2360 * This is used from various compatibility syscalls too. That's why name

Callers

nothing calls this directly

Calls 2

kern___sysctlbynameFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected