Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2012 16:42:00 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r242661 - projects/calloutng/share/man/man9
Message-ID:  <201211061642.qA6Gg0fT004385@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211061642.qA6Gg0fT004385>