Kernel timers infrastructure
John Baldwin
jhb at freebsd.org
Mon Sep 12 12:19:06 UTC 2011
On Monday, September 12, 2011 4:42:40 am Filippo Sironi wrote:
> This is what I wrote for FreeBSD 7.2 and it does not work:
callout_reset() is always going to return false here as you are never
rescheduling an existing callout (it is either idle or has already fired each
time you invoke callout_reset()).
However, you are calling uprintf() from the kernel softclock thread and that
thread is not attached to your tty, so the uprintf() is going to nowhere.
Just use a regular printf and you will get your "Hello, World!" output once a
second.
--
John Baldwin
More information about the freebsd-hackers
mailing list