Callouts
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
Get FreeBSD Device Drivers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.