| 1360 | }; |
| 1361 | #endif |
| 1362 | int |
| 1363 | sys_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 | |
| 1378 | int |
| 1379 | kern_ktimer_settime(struct thread *td, int timer_id, int flags, |
nothing calls this directly
no test coverage detected