Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 Expand. From discussion on tech-kern.



details:   https://anonhg.NetBSD.org/src/rev/ff8a794f16cc
branches:  trunk
changeset: 534823:ff8a794f16cc
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sun Aug 04 01:16:09 2002 +0000

description:
Expand.  From discussion on tech-kern.

diffstat:

 share/man/man9/delay.9 |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 6b3bd8fe9d84 -r ff8a794f16cc share/man/man9/delay.9
--- a/share/man/man9/delay.9    Sun Aug 04 01:07:21 2002 +0000
+++ b/share/man/man9/delay.9    Sun Aug 04 01:16:09 2002 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: delay.9,v 1.1 2002/05/25 02:16:37 gmcgarry Exp $
+.\"     $NetBSD: delay.9,v 1.2 2002/08/04 01:16:09 gmcgarry Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -51,3 +51,16 @@
 Wait approximately
 .Fa us
 microseconds.
+.Pp
+The delay is implemented as a machine loop, preventing events other than
+interrupt handlers for unmasked interrupts to run.
+.Fn DELAY
+is safe to use in interrupt or process context.
+.Pp
+For long delays,
+.Xr tsleep 9
+should be considered, however it can only be called from process context
+and its resolution is limited by the system clock frequency.
+.Sh SEE ALSO
+.Xr hz 9 ,
+.Xr tsleep 9



Home | Main Index | Thread Index | Old Index