svn commit: r242662 - projects/calloutng/share/man/man9

Alexander Motin mav at FreeBSD.org
Tue Nov 6 16:51:42 UTC 2012


Author: mav
Date: Tue Nov  6 16:51:41 2012
New Revision: 242662
URL: http://svnweb.freebsd.org/changeset/base/242662

Log:
  Document new sleepq_set_timeout_flags() and sleepq_set_timeout_bt()
  functions.

Modified:
  projects/calloutng/share/man/man9/sleepqueue.9

Modified: projects/calloutng/share/man/man9/sleepqueue.9
==============================================================================
--- projects/calloutng/share/man/man9/sleepqueue.9	Tue Nov  6 16:42:00 2012	(r242661)
+++ projects/calloutng/share/man/man9/sleepqueue.9	Tue Nov  6 16:51:41 2012	(r242662)
@@ -23,7 +23,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd January 8, 2010
+.Dd November 6, 2012
 .Dt SLEEPQUEUE 9
 .Os
 .Sh NAME
@@ -41,6 +41,8 @@
 .Nm sleepq_remove ,
 .Nm sleepq_signal ,
 .Nm sleepq_set_timeout ,
+.Nm sleepq_set_timeout_flags ,
+.Nm sleepq_set_timeout_bt ,
 .Nm sleepq_sleepcnt ,
 .Nm sleepq_timedwait ,
 .Nm sleepq_timedwait_sig ,
@@ -79,6 +81,10 @@
 .Fn sleepq_signal "void *wchan" "int flags" "int pri" "int queue"
 .Ft void
 .Fn sleepq_set_timeout "void *wchan" "int timo"
+.Ft void
+.Fn sleepq_set_timeout_flags "void *wchan" "int timo" "int flags"
+.Ft void
+.Fn sleepq_set_timeout_bt "void *wchan" "struct bintime *bt" "int flags"
 .Ft u_int
 .Fn sleepq_sleepcnt "void *wchan" "int queue"
 .Ft int
@@ -231,6 +237,23 @@ The
 .Fa timo
 parameter should specify the timeout value in ticks.
 .Pp
+.Fn sleepq_set_timeout_bt
+function takes
+.Fa bt
+argument instead of
+.Fa timo .
+It allows to specify wakeup time with higher resolution as absolute time
+since boot in form of
+.Vt struct bintime * ,
+as returned by
+.Fn binuptime
+function.
+The parameter
+.Fa flags
+allows to specify additional
+.Xr callout 9
+flags, such as precision.
+.Pp
 The current thread may be marked interruptible by calling
 .Fn sleepq_catch_signals
 with


More information about the svn-src-projects mailing list