ARGSUSED */
| 387 | #endif |
| 388 | /* ARGSUSED */ |
| 389 | int |
| 390 | sys_ffclock_getcounter(struct thread *td, struct ffclock_getcounter_args *uap) |
| 391 | { |
| 392 | ffcounter ffcount; |
| 393 | int error; |
| 394 | |
| 395 | ffcount = 0; |
| 396 | ffclock_read_counter(&ffcount); |
| 397 | if (ffcount == 0) |
| 398 | return (EAGAIN); |
| 399 | error = copyout(&ffcount, uap->ffcount, sizeof(ffcounter)); |
| 400 | |
| 401 | return (error); |
| 402 | } |
| 403 | |
| 404 | /* |
| 405 | * System call allowing the synchronisation daemon to push new feed-foward clock |
nothing calls this directly
no test coverage detected