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

Function sys_ktimer_settime

freebsd/kern/kern_time.c:1362–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1360};
1361#endif
1362int
1363sys_ktimer_settime(struct thread *td, struct ktimer_settime_args *uap)
1364{
1365 struct itimerspec val, oval, *ovalp;
1366 int error;
1367
1368 error = copyin(uap->value, &val, sizeof(val));
1369 if (error != 0)
1370 return (error);
1371 ovalp = uap->ovalue != NULL ? &oval : NULL;
1372 error = kern_ktimer_settime(td, uap->timerid, uap->flags, &val, ovalp);
1373 if (error == 0 && uap->ovalue != NULL)
1374 error = copyout(ovalp, uap->ovalue, sizeof(*ovalp));
1375 return (error);
1376}
1377
1378int
1379kern_ktimer_settime(struct thread *td, int timer_id, int flags,

Callers

nothing calls this directly

Calls 3

kern_ktimer_settimeFunction · 0.85
copyinFunction · 0.50
copyoutFunction · 0.50

Tested by

no test coverage detected