diff options
author | glebius <glebius@FreeBSD.org> | 2004-12-01 11:56:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-12-01 11:56:32 +0000 |
commit | 0ee3c9a14806187ae7b21c6472acef229f787eec (patch) | |
tree | 993048ef397a314598d7acf4cda3afeaf0b93717 /sys/netgraph/ng_source.c | |
parent | 5951763807c9b6250b4836e194dfec959d4b5be6 (diff) | |
download | FreeBSD-src-0ee3c9a14806187ae7b21c6472acef229f787eec.zip FreeBSD-src-0ee3c9a14806187ae7b21c6472acef229f787eec.tar.gz |
Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.
This is done to keep both versions in RELENG_5 and support both APIs.
Reviewed by: scottl
Approved by: julian (mentor), implicitly
Diffstat (limited to 'sys/netgraph/ng_source.c')
-rw-r--r-- | sys/netgraph/ng_source.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c index 809c7ff..347170b 100644 --- a/sys/netgraph/ng_source.c +++ b/sys/netgraph/ng_source.c @@ -331,7 +331,7 @@ ng_source_rcvmsg(node_p node, item_p item, hook_p lasthook) timevalclear(&sc->stats.elapsedTime); timevalclear(&sc->stats.endTime); getmicrotime(&sc->stats.startTime); - ng_timeout(&sc->intr_ch, node, NULL, 0, + ng_callout(&sc->intr_ch, node, NULL, 0, ng_source_intr, sc, 0); } break; @@ -359,7 +359,7 @@ ng_source_rcvmsg(node_p node, item_p item, hook_p lasthook) timevalclear(&sc->stats.elapsedTime); timevalclear(&sc->stats.endTime); getmicrotime(&sc->stats.startTime); - ng_timeout(&sc->intr_ch, node, NULL, 0, + ng_callout(&sc->intr_ch, node, NULL, 0, ng_source_intr, sc, 0); } break; @@ -586,7 +586,7 @@ static void ng_source_stop (sc_p sc) { if (sc->node->nd_flags & NG_SOURCE_ACTIVE) { - ng_untimeout(&sc->intr_ch, sc->node); + ng_uncallout(&sc->intr_ch, sc->node); sc->node->nd_flags &= ~NG_SOURCE_ACTIVE; getmicrotime(&sc->stats.endTime); sc->stats.elapsedTime = sc->stats.endTime; @@ -626,7 +626,7 @@ ng_source_intr(node_p node, hook_p hook, void *arg1, int arg2) if (sc->packets == 0) ng_source_stop(sc); else - ng_timeout(&sc->intr_ch, node, NULL, NG_SOURCE_INTR_TICKS, + ng_callout(&sc->intr_ch, node, NULL, NG_SOURCE_INTR_TICKS, ng_source_intr, sc, 0); } |