From owner-freebsd-questions@FreeBSD.ORG Fri May 30 06:04:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15B8837B401 for ; Fri, 30 May 2003 06:04:53 -0700 (PDT) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7121A43F85 for ; Fri, 30 May 2003 06:04:52 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by attbi.com (rwcrmhc53) with ESMTP id <2003053013045205300rtje5e>; Fri, 30 May 2003 13:04:52 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h4UD4pOA021957 for ; Fri, 30 May 2003 09:04:51 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h4UD4omj021954; Fri, 30 May 2003 09:04:50 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: questions@freebsd.org References: <20030529224021.GB82918@webserver.get-linux.org> From: Lowell Gilbert Date: 30 May 2003 09:04:50 -0400 In-Reply-To: <20030529224021.GB82918@webserver.get-linux.org> Message-ID: <447k8860wd.fsf@be-well.ilk.org> Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: sleep for specified time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 13:04:53 -0000 > > someone please tell me how to make a kld sleep for specified number of > > microseconds > > > > its urgent. > > nanosleep (microseconds*1000); In the kernel? Surely not. I think you'd need to explicitly run the scheduler, and probably use a timer event to resume later. There are established techniques for these things, but the BSD kernel details aren't my specialty...