Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/ng_base.c
Show First 20 Lines • Show All 3,795 Lines • ▼ Show 20 Lines | ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, | ||||
NGI_ARG2(item) = arg2; | NGI_ARG2(item) = arg2; | ||||
oitem = c->c_arg; | oitem = c->c_arg; | ||||
if (callout_reset(c, ticks, &ng_callout_trampoline, item) == 1 && | if (callout_reset(c, ticks, &ng_callout_trampoline, item) == 1 && | ||||
oitem != NULL) | oitem != NULL) | ||||
NG_FREE_ITEM(oitem); | NG_FREE_ITEM(oitem); | ||||
return (0); | return (0); | ||||
} | } | ||||
/* A special modified version of untimeout() */ | /* A special modified version of callout_stop() */ | ||||
int | int | ||||
ng_uncallout(struct callout *c, node_p node) | ng_uncallout(struct callout *c, node_p node) | ||||
{ | { | ||||
item_p item; | item_p item; | ||||
int rval; | int rval; | ||||
KASSERT(c != NULL, ("ng_uncallout: NULL callout")); | KASSERT(c != NULL, ("ng_uncallout: NULL callout")); | ||||
KASSERT(node != NULL, ("ng_uncallout: NULL node")); | KASSERT(node != NULL, ("ng_uncallout: NULL node")); | ||||
Show All 38 Lines |