Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2003 15:38:47 -0700
From:      Joshua Oreman <oremanj@webserver.get-linux.org>
To:        Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
Cc:        questions@freebsd.org
Subject:   Re: sleep for specified time
Message-ID:  <20030530223847.GB20554@webserver.get-linux.org>
In-Reply-To: <447k8860wd.fsf@be-well.ilk.org>
References:  <Law9-F990DyY7Yok2zB0005ea4e@hotmail.com> <20030529224021.GB82918@webserver.get-linux.org> <447k8860wd.fsf@be-well.ilk.org>

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



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