diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2007-11-14 11:25:58 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2007-11-14 11:25:58 +0000 |
| commit | b332b91f7435e47366950b836e9bf579a5f1db29 (patch) | |
| tree | 0b7639598b1545ad93ce6c00f8882c93b416d551 /sys/netgraph/netgraph.h | |
| parent | fda51f89ff39315f07e71474124bb3e787a2f950 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/netgraph.h')
| -rw-r--r-- | sys/netgraph/netgraph.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index 51eebbf7cc4c..792814c03733 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -1110,22 +1110,12 @@ int ng_rmhook_self(hook_p hook); /* if a node wants to kill a hook */ int ng_rmnode_self(node_p here); /* if a node wants to suicide */ int ng_rmtype(struct ng_type *tp); int ng_snd_item(item_p item, int queue); -int ng_send_fn1(node_p node, hook_p hook, ng_item_fn *fn, +int ng_send_fn(node_p node, hook_p hook, ng_item_fn *fn, void *arg1, + int arg2); +int ng_send_fn1(node_p node, hook_p hook, ng_item_fn *fn, void *arg1, + int arg2, int flags); +int ng_send_fn2(node_p node, hook_p hook, item_p pitem, ng_item_fn2 *fn, void *arg1, int arg2, int flags); -#define ng_send_fn(node, hook, fn, arg1, arg2) \ - ng_send_fn1(node, hook, fn, arg1, arg2, NG_NOFLAGS) -int ng_send_fn21(node_p node, hook_p hook, ng_item_fn2 *fn, - void *arg1, int arg2, int flags); -#define ng_send_fn2(node, hook, fn, arg1, arg2) \ - ng_send_fn21(node, hook, fn, arg1, arg2, NG_NOFLAGS) -int ng_send_fn21_cont(item_p item, node_p node, hook_p hook, ng_item_fn2 *fn, - void *arg1, int arg2, int flags); -#define ng_send_fn2_cont(item, node, hook, fn, arg1, arg2) \ - ng_send_fn21_cont(item, node, hook, fn, arg1, arg2, NG_NOFLAGS) -int ng_send_fn21_fwd(item_p item, node_p node, hook_p hook, ng_item_fn2 *fn, - void *arg1, int arg2, int flags); -#define ng_send_fn2_fwd(item, node, hook, fn, arg1, arg2) \ - ng_send_fn21_fwd(item, node, hook, fn, arg1, arg2, NG_NOFLAGS) int ng_uncallout(struct callout *c, node_p node); int ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, ng_item_fn *fn, void * arg1, int arg2); @@ -1135,7 +1125,9 @@ int ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, #define NG_NOFLAGS 0x00000000 /* no special options */ #define NG_QUEUE 0x00000001 /* enqueue item, don't dispatch */ #define NG_WAITOK 0x00000002 /* use M_WAITOK, etc. */ +/* XXXGL: NG_PROGRESS unused since ng_base.c rev. 1.136. Should be deleted? */ #define NG_PROGRESS 0x00000004 /* return EINPROGRESS if queued */ +#define NG_REUSE_ITEM 0x00000008 /* supplied item should be reused */ /* * prototypes the user should DEFINITELY not use directly |
