diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2016-06-18 06:48:32 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2016-06-18 06:48:32 +0000 |
commit | 08141d7755dddaf70b1628d2966342830c9c9dfc (patch) | |
tree | 78f89da1acf37c21aa07774f28912e7a566a5f8b | |
parent | ec3a50600dffe1c1ea70d3fd02c150b08f8b10d6 (diff) |
tweak previous;
ok mglocker
-rw-r--r-- | share/man/man9/usbd_ref_wait.9 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/usbd_ref_wait.9 b/share/man/man9/usbd_ref_wait.9 index 479f842dd44..a072b684705 100644 --- a/share/man/man9/usbd_ref_wait.9 +++ b/share/man/man9/usbd_ref_wait.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: usbd_ref_wait.9,v 1.1 2016/06/17 13:23:21 mglocker Exp $ +.\" $OpenBSD: usbd_ref_wait.9,v 1.2 2016/06/18 06:48:31 jmc Exp $ .\" .\" Copyright (c) 2016 Marcus Glocker <mglocker@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 17 2016 $ +.Dd $Mdocdate: June 18 2016 $ .Dt USBD_REF_WAIT 9 .Os .Sh NAME @@ -33,7 +33,7 @@ The .Fn usbd_ref_wait function is used on a device level to -.Fn tsleep +.Xr tsleep 9 until the reference counter has reached zero. .Pp To increase the reference counter use @@ -46,9 +46,9 @@ will call .Fn wakeup to interrupt the .Fn tsleep -at the point where you have set the +at the point where .Fn usbd_ref_wait -before. +was previously set. .Pp Typical use cases to wait for tasks to complete is at device closing or detachment. @@ -59,6 +59,6 @@ and .Fn usbd_ref_wait can be called during autoconf or from process context. .Sh SEE ALSO -.Xr tsleep 9 , .Xr usb 4 , +.Xr tsleep 9 , .Xr wakeup 9 |