"sleep" in freebsd kernel

lu ping luping.nju at gmail.com
Sun Feb 4 03:22:01 UTC 2007


Hey Folks,

I have a kernel thread running as a daemon, and I want to make it sleep for
a while in an infinite loop. I guess I can use "tsleep" but it only timeout
after intergal system ticks, which only has millisecond granularity, but I
want to make it sleep in some microsecond. Is there any way I can do this in
the kernel?


More information about the freebsd-hackers mailing list