Skip site navigation (1)Skip section navigation (2)
Date:      30 May 2003 09:04:50 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        questions@freebsd.org
Subject:   Re: sleep for specified time
Message-ID:  <447k8860wd.fsf@be-well.ilk.org>
In-Reply-To: <20030529224021.GB82918@webserver.get-linux.org>
References:  <Law9-F990DyY7Yok2zB0005ea4e@hotmail.com> <20030529224021.GB82918@webserver.get-linux.org>

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



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