sleep for specified time
Joshua Oreman
oremanj at webserver.get-linux.org
Fri May 30 15:37:18 PDT 2003
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list