svn commit: r242661 - projects/calloutng/share/man/man9
Alexander Motin
mav at FreeBSD.org
Tue Nov 6 16:42:01 UTC 2012
Author: mav
Date: Tue Nov 6 16:42:00 2012
New Revision: 242661
URL: http://svnweb.freebsd.org/changeset/base/242661
Log:
Document new msleep_bt() and tsleep_bt() functions.
Modified:
projects/calloutng/share/man/man9/sleep.9
Modified: projects/calloutng/share/man/man9/sleep.9
==============================================================================
--- projects/calloutng/share/man/man9/sleep.9 Tue Nov 6 15:37:22 2012 (r242660)
+++ projects/calloutng/share/man/man9/sleep.9 Tue Nov 6 16:42:00 2012 (r242661)
@@ -25,14 +25,16 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 12, 2009
+.Dd November 6, 2012
.Dt SLEEP 9
.Os
.Sh NAME
.Nm msleep ,
+.Nm msleep_bt ,
.Nm msleep_spin ,
.Nm pause ,
.Nm tsleep ,
+.Nm tsleep_bt ,
.Nm wakeup
.Nd wait for events
.Sh SYNOPSIS
@@ -42,11 +44,17 @@
.Ft int
.Fn msleep "void *chan" "struct mtx *mtx" "int priority" "const char *wmesg" "int timo"
.Ft int
+.Fn msleep_bt "void *chan" "struct mtx *mtx" "int priority" \
+"const char *wmesg" "struct bintime *bt" "int flags"
+.Ft int
.Fn msleep_spin "void *chan" "struct mtx *mtx" "const char *wmesg" "int timo"
.Ft void
.Fn pause "const char *wmesg" "int timo"
.Ft int
.Fn tsleep "void *chan" "int priority" "const char *wmesg" "int timo"
+.Ft int
+.Fn tsleep_bt "void *chan" "int priority" "const char *wmesg" \
+"struct bintime *bt" "int flags"
.Ft void
.Fn wakeup "void *chan"
.Ft void
@@ -146,6 +154,26 @@ If the timeout expires,
then the sleep function will return
.Er EWOULDBLOCK .
.Pp
+.Fn msleep_bt
+and
+.Fn tsleep_bt
+functions take
+.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.
+.Pp
+The parameter
+.Fa flags
+allows to specify additional
+.Xr callout 9
+flags, such as precision.
+.Pp
Several of the sleep functions including
.Fn msleep ,
.Fn msleep_spin ,
More information about the svn-src-projects
mailing list