From owner-freebsd-questions@FreeBSD.ORG Fri May 30 15:37:18 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 9460837B401 for ; Fri, 30 May 2003 15:37:18 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id D1B3A43F75 for ; Fri, 30 May 2003 15:37:17 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 20698 invoked by uid 1001); 30 May 2003 22:38:47 -0000 Date: Fri, 30 May 2003 15:38:47 -0700 From: Joshua Oreman To: Lowell Gilbert Message-ID: <20030530223847.GB20554@webserver.get-linux.org> Mail-Followup-To: Lowell Gilbert , questions@freebsd.org References: <20030529224021.GB82918@webserver.get-linux.org> <447k8860wd.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <447k8860wd.fsf@be-well.ilk.org> User-Agent: Mutt/1.4i cc: questions@freebsd.org 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 22:37:18 -0000 On Fri, May 30, 2003 at 09:04:50AM -0400 or thereabouts, Lowell Gilbert seemed to write: > > > 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... Sorry, I really am not familliar with the kernel. I just figured, nanosleep is a syscall, so it should work in kernel... Sorry again, -- Josh > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"