April 2012
Intermediate to advanced
352 pages
8h
English
Callouts allow drivers to asynchronously execute a function after a specified amount of time (or at regular intervals). These functions are known as callout functions.
The FreeBSD kernel provides the following seven functions for working with callouts:
#include <sys/types.h> #include <sys/systm.h> typedef void timeout_t (void *); void callout_init(struct callout*c, int
mpsafe); void callout_init_mtx(struct callout *c, struct mtx
*mtx, int