summaryrefslogtreecommitdiffstats
path: root/sys/sys/timeffc.h
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2011-11-21 01:26:10 +0000
committerlstewart <lstewart@FreeBSD.org>2011-11-21 01:26:10 +0000
commitcca3084242962a9999626670f9251e776ee73876 (patch)
treee812bc9031b95cd473bdb74037774c00712f0667 /sys/sys/timeffc.h
parentf05b192013cff01ec4bb794f07f85846cb2915b3 (diff)
downloadFreeBSD-src-cca3084242962a9999626670f9251e776ee73876.zip
FreeBSD-src-cca3084242962a9999626670f9251e776ee73876.tar.gz
- Add the ffclock_getcounter(), ffclock_getestimate() and ffclock_setestimate()
system calls to provide feed-forward clock management capabilities to userspace processes. ffclock_getcounter() returns the current value of the kernel's feed-forward clock counter. ffclock_getestimate() returns the current feed-forward clock parameter estimates and ffclock_setestimate() updates the feed-forward clock parameter estimates. - Document the syscalls in the ffclock.2 man page. - Regenerate the script-derived syscall related files. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au)
Diffstat (limited to 'sys/sys/timeffc.h')
-rw-r--r--sys/sys/timeffc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/timeffc.h b/sys/sys/timeffc.h
index c2a04ab..0c58c05 100644
--- a/sys/sys/timeffc.h
+++ b/sys/sys/timeffc.h
@@ -164,6 +164,15 @@ void ffclock_bindifftime(ffcounter ffdelta, struct bintime *bt);
void ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp);
void ffclock_microdifftime(ffcounter ffdelta, struct timeval *tvp);
+#else /* !_KERNEL */
+
+/* Feed-Forward Clock system calls. */
+__BEGIN_DECLS
+int ffclock_getcounter(ffcounter *ffcount);
+int ffclock_getestimate(struct ffclock_estimate *cest);
+int ffclock_setestimate(struct ffclock_estimate *cest);
+__END_DECLS
+
#endif /* _KERNEL */
#endif /* __BSD_VISIBLE */
#endif /* _SYS_TIMEFF_H_ */
OpenPOWER on IntegriCloud