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

Function sys_ffclock_getcounter

freebsd/kern/kern_ffclock.c:389–402  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

387#endif
388/* ARGSUSED */
389int
390sys_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

Callers

nothing calls this directly

Calls 2

ffclock_read_counterFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected