Coding the Timer Function

The t->func timer function is called on an interrupt level. Therefore, the code for this function must be in pinned storage and must follow conventions for interrupt handlers.

The t->func timer function should be declared as follows:

void func (t)
struct trb *t;

The argument to the func completion handler routine is the address of the trb structure, not the contents of the t_union field.