| 1406 | }; |
| 1407 | #endif |
| 1408 | int |
| 1409 | sys_ktimer_gettime(struct thread *td, struct ktimer_gettime_args *uap) |
| 1410 | { |
| 1411 | struct itimerspec val; |
| 1412 | int error; |
| 1413 | |
| 1414 | error = kern_ktimer_gettime(td, uap->timerid, &val); |
| 1415 | if (error == 0) |
| 1416 | error = copyout(&val, uap->value, sizeof(val)); |
| 1417 | return (error); |
| 1418 | } |
| 1419 | |
| 1420 | int |
| 1421 | kern_ktimer_gettime(struct thread *td, int timer_id, struct itimerspec *val) |
nothing calls this directly
no test coverage detected