Searched refs:hook (Results 1 - 25 of 252) sorted by relevance

1234567891011

/freebsd-current/contrib/jemalloc/include/jemalloc/internal/
H A Dtest_hooks.h7 #define JEMALLOC_HOOK(fn, hook) ((void)(hook != NULL && (hook(), 0)), fn)
/freebsd-current/usr.sbin/ctladm/
H A Dctladm.h45 char *cget(void *hook, char *name);
46 int iget(void *hook, char *name);
47 void arg_put(void *hook, int letter, void *arg, int count, char *name);
/freebsd-current/sys/netgraph/
H A Dnetgraph.h100 typedef int ng_newhook_t(node_p node, hook_p hook, const char *name);
102 typedef int ng_connect_t(hook_p hook);
104 typedef int ng_rcvdata_t(hook_p hook, item_p item);
105 typedef int ng_disconnect_t(hook_p hook);
106 typedef int ng_rcvitem (node_p node, hook_p hook, item_p item);
112 * Structure of a hook
116 void *hk_private; /* node dependent ID for this hook */
117 int hk_flags; /* info about this hook/link */
118 int hk_type; /* tbd: hook data link type */
120 struct ng_node *hk_node; /* The node this hook i
195 _chkhook(hook_p hook, char *file, int line) argument
206 _ng_hook_ref(hook_p hook, char * file, int line) argument
213 _ng_hook_name(hook_p hook, char * file, int line) argument
220 _ng_hook_unref(hook_p hook, char * file, int line) argument
227 _ng_hook_set_private(hook_p hook, void *val, char * file, int line) argument
234 _ng_hook_set_rcvmsg(hook_p hook, ng_rcvmsg_t *val, char * file, int line) argument
241 _ng_hook_set_rcvdata(hook_p hook, ng_rcvdata_t *val, char * file, int line) argument
248 _ng_hook_private(hook_p hook, char * file, int line) argument
255 _ng_hook_not_valid(hook_p hook, char * file, int line) argument
262 _ng_hook_is_valid(hook_p hook, char * file, int line) argument
269 _ng_hook_node(hook_p hook, char * file, int line) argument
276 _ng_hook_peer(hook_p hook, char * file, int line) argument
283 _ng_hook_force_writer(hook_p hook, char * file, int line) argument
290 _ng_hook_force_queue(hook_p hook, char * file, int line) argument
297 _ng_hook_set_to_inbound(hook_p hook, char * file, int line) argument
304 _ng_hook_hi_stack(hook_p hook, char * file, int line) argument
[all...]
H A Dng_sample.c120 /* Information we store for each hook on each node */
124 hook_p hook; member in struct:XXX_hookinfo
168 * Give our ok for a hook to be added...
170 * Possibly decode information out of the hook name.
171 * Add the hook's private info to the hook structure.
175 * pointer of each hook points to the appropriate XXX_hookinfo struct
180 ng_xxx_newhook(node_p node, hook_p hook, const char *name) argument
221 if (xxxp->channel[chan].hook != NULL)
223 NG_HOOK_SET_PRIVATE(hook, xxx
323 ng_xxx_rcvdata(hook_p hook, item_p item ) argument
436 ng_xxx_connect(hook_p hook) argument
476 ng_xxx_disconnect(hook_p hook) argument
[all...]
H A Dng_etf.c128 /* Information we store for each hook on each node */
130 hook_p hook; member in struct:ETF_hookinfo
193 * Give our ok for a hook to be added...
197 ng_etf_newhook(node_p node, hook_p hook, const char *name) argument
203 etfp->downstream_hook.hook = hook;
204 NG_HOOK_SET_PRIVATE(hook, &etfp->downstream_hook);
208 etfp->nomatch_hook.hook = hook;
209 NG_HOOK_SET_PRIVATE(hook,
282 hook_p hook; local
362 ng_etf_rcvdata(hook_p hook, item_p item ) argument
448 ng_etf_disconnect(hook_p hook) argument
[all...]
H A Dng_split.c98 * Give our ok for a hook to be added
101 ng_split_newhook(node_p node, hook_p hook, const char *name) argument
117 *localhook = hook;
118 NG_HOOK_SET_PRIVATE(hook, localhook);
124 * Recive data from a hook.
127 ng_split_rcvdata(hook_p hook, item_p item) argument
129 const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
132 if (hook == priv->out) {
133 printf("ng_split: got packet from out hook!\n");
136 } else if ((hook
164 ng_split_disconnect(hook_p hook) argument
[all...]
H A Dng_echo.c99 nge_rcvdata(hook_p hook, item_p item) argument
103 NG_FWD_ITEM_HOOK(error, item, hook);
111 nge_disconnect(hook_p hook) argument
113 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
114 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) {
115 ng_rmnode_self(NG_HOOK_NODE(hook));
H A Dng_UI.c109 * Give our ok for a hook to be added
112 ng_UI_newhook(node_p node, hook_p hook, const char *name) argument
119 priv->downlink = hook;
123 priv->uplink = hook;
165 ng_UI_rcvdata(hook_p hook, item_p item) argument
167 const node_p node = NG_HOOK_NODE(hook);
173 if (hook == priv->downlink) {
187 } else if (hook == priv->uplink) {
222 ng_UI_disconnect(hook_p hook) argument
224 const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
[all...]
H A Dng_tag.c36 * This node type accepts an arbitrary number of hooks. Each hook can be
37 * configured for an mbuf_tags(9) definition and two hook names: a hook
38 * for matched packets, and a hook for packets, that didn't match. Incoming
40 * out via first hook, and not matched out via second. If corresponding hook
43 * A hook can also have an outgoing tag definition configured, so that
44 * all packets leaving the hook will be unconditionally appended with newly
49 * are unconditionally forwarded to non-matching hook on input. There is
54 * If compiled with NG_TAG_DEBUG, each hook als
300 ng_tag_newhook(node_p node, hook_p hook, const char *name) argument
361 hook_p hook; local
382 hook_p hook; local
402 hook_p hook; local
426 hook_p hook; local
453 hook_p hook; local
501 ng_tag_rcvdata(hook_p hook, item_p item) argument
608 ng_tag_disconnect(hook_p hook) argument
644 ng_tag_setdata_in(hook_p hook, const struct ng_tag_hookin *hp0) argument
694 ng_tag_setdata_out(hook_p hook, const struct ng_tag_hookout *hp0) argument
[all...]
H A Dng_hole.c56 /* Per hook private info. */
125 * Add a hook.
128 ngh_newhook(node_p node, hook_p hook, const char *name) argument
132 /* Create hook private structure. */
136 NG_HOOK_SET_PRIVATE(hook, hip);
150 hook_p hook; local
164 /* Find hook. */
165 hook = ng_findhook(node, (char *)msg->data);
166 if (hook == NULL) {
170 stats = &((hinfo_p)NG_HOOK_PRIVATE(hook))
203 ngh_rcvdata(hook_p hook, item_p item) argument
217 ngh_disconnect(hook_p hook) argument
[all...]
H A Dng_frame_relay.c47 * It has a 'downstream' hook that goes to the line, and a
48 * hook for each DLCI (eg, 'dlci16').
67 struct ctxinfo { /* one per active hook */
72 hook_p hook; /* if there's a hook assigned.. */ member in struct:ctxinfo
225 * Add a new hook
228 * The hook's private info points to our stash of info about that
232 ngfrm_newhook(node_p node, hook_p hook, const char *name) argument
240 /* Check if it's our friend the control hook */
242 NG_HOOK_SET_PRIVATE(hook, NUL
326 ngfrm_rcvdata(hook_p hook, item_p item) argument
482 ngfrm_disconnect(hook_p hook) argument
[all...]
H A Dng_base.c87 static struct mtx ng_nodelist_mtx; /* protects global node/hook lists */
234 static int ng_con_part2(node_p node, item_p item, hook_p hook);
235 static int ng_con_part3(node_p node, item_p item, hook_p hook);
242 void ng_destroy_hook(hook_p hook);
246 int ng_path_parse(char *addr, char **node, char **path, char **hook);
254 "netgraph hook structures");
262 #define _NG_ALLOC_HOOK(hook) \
263 hook = malloc(sizeof(*hook), M_NETGRAPH_HOOK, M_NOWAIT | M_ZERO)
296 hook_p hook; local
717 hook_p hook; local
1050 ng_unref_hook(hook_p hook) argument
1070 hook_p hook; local
1131 hook_p hook; local
1162 ng_destroy_hook(hook_p hook) argument
1345 ng_con_part3(node_p node, item_p item, hook_p hook) argument
1388 ng_con_part2(node_p node, item_p item, hook_p hook) argument
1486 hook_p hook; local
1624 ng_rmhook_part2(node_p node, hook_p hook, void *arg1, int arg2) argument
1631 ng_rmhook_self(hook_p hook) argument
1661 char *node, *path, *hook; local
1788 hook_p hook; local
2229 hook_p hook; local
2366 hook_p hook; local
2582 hook_p hook; local
2618 hook_p hook; local
3264 dumphook(hook_p hook, char *file, int line) argument
3362 hook_p hook; local
3594 ng_address_hook(node_p here, item_p item, hook_p hook, ng_ID_t retaddr) argument
3633 hook_p hook = NULL; local
3682 ng_package_msg_self(node_p here, hook_p hook, struct ng_mesg *msg) argument
3714 ng_send_fn(node_p node, hook_p hook, ng_item_fn *fn, void * arg1, int arg2) argument
3721 ng_send_fn1(node_p node, hook_p hook, ng_item_fn *fn, void * arg1, int arg2, int flags) argument
3751 ng_send_fn2(node_p node, hook_p hook, item_p pitem, ng_item_fn2 *fn, void *arg1, int arg2, int flags) argument
3803 ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, ng_item_fn *fn, void * arg1, int arg2) argument
[all...]
H A Dng_ipfw.c94 /* Information we store for each hook */
96 hook_p hook; member in struct:ng_ipfw_hook_priv
126 /* Register hook */
152 ng_ipfw_newhook(node_p node, hook_p hook, const char *name) argument
173 /* Allocate memory for this hook's private data */
178 hpriv->hook = hook;
181 NG_HOOK_SET_PRIVATE(hook, hpriv);
191 ng_ipfw_connect(hook_p hook) argument
193 NG_HOOK_FORCE_QUEUE(hook);
214 hook_p hook; local
227 ng_ipfw_rcvdata(hook_p hook, item_p item) argument
287 hook_p hook; local
349 ng_ipfw_disconnect(hook_p hook) argument
[all...]
H A Dng_ether_echo.c103 ngee_rcvdata(hook_p hook, item_p item) argument
127 NG_FWD_NEW_DATA(error, item, hook, m);
135 ngee_disconnect(hook_p hook) argument
137 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
138 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) {
139 ng_rmnode_self(NG_HOOK_NODE(hook));
H A Dng_bpf.c45 * This node type accepts any number of hook connections. With each hook
46 * is associated a bpf(4) filter program, and two hook names (each possibly
48 * matching packets are delivered out the first named hook (or dropped if
50 * named hook (or dropped if the empty string).
52 * Each hook also keeps statistics about how many packets have matched, etc.
84 /* Per hook private info */
86 hook_p hook; member in struct:ng_bpf_hookinfo
109 static int ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp);
216 /* Default BPF program for a hook tha
242 ng_bpf_addrefs(hook_p hook, void* arg) argument
255 ng_bpf_remrefs(hook_p hook, void* arg) argument
271 ng_bpf_newhook(node_p node, hook_p hook, const char *name) argument
316 hook_p hook; local
337 hook_p hook; local
364 hook_p hook; local
412 ng_bpf_rcvdata(hook_p hook, item_p item) argument
520 ng_bpf_disconnect(hook_p hook) argument
551 ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp0) argument
[all...]
H A Dng_hub.c117 ng_hub_rcvdata(hook_p hook, item_p item) argument
119 const node_p node = NG_HOOK_NODE(hook);
130 if (hook2 == hook)
163 ng_hub_disconnect(hook_p hook) argument
165 const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
167 if (NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0 &&
168 NG_NODE_IS_VALID(NG_HOOK_NODE(hook)) && !priv->persistent)
169 ng_rmnode_self(NG_HOOK_NODE(hook));
/freebsd-current/contrib/libxo/xolint/
H A DMakefile.am13 install-exec-hook:
16 uninstall-hook:
19 install-data-hook:
/freebsd-current/sys/contrib/openzfs/contrib/initramfs/hooks/
H A Dzfsunlock.in8 . /usr/share/initramfs-tools/hook-functions
/freebsd-current/sys/kern/
H A Dsubr_autoconf.c86 * If we wait too long for an interrupt-driven config hook to return, print
124 * If hook processing is already active, any newly
178 * Register a hook that will be called after "cold"
183 config_intrhook_establish(struct intr_config_hook *hook) argument
190 if (hook_entry == hook)
195 "already established hook.\n");
198 STAILQ_INSERT_TAIL(&intr_config_hook_list, hook, ich_links);
200 next_to_notify = hook;
201 hook->ich_state = ICHS_QUEUED;
206 * to be re-entered at the time a hook i
230 config_intrhook_disestablish_locked(struct intr_config_hook *hook) argument
252 config_intrhook_disestablish(struct intr_config_hook *hook) argument
260 config_intrhook_drain(struct intr_config_hook *hook) argument
[all...]
/freebsd-current/contrib/jemalloc/src/
H A Dhook.c3 #include "jemalloc/internal/hook.h"
77 char *hook = (char *)opaque; local
78 assert(hooks_begin <= hook && hook < hooks_end
79 && (hook - hooks_begin) % sizeof(seq_hooks_t) == 0);
110 * - Right now, we turn on reentrancy during things like extent hook
114 * - If a hook allocates, we may want it to be relatively fast (after
158 hooks_internal_t hook; local
159 FOR_EACH_HOOK_BEGIN(&hook)
160 hook_alloc h = hook
172 hooks_internal_t hook; local
186 hooks_internal_t hook; local
[all...]
/freebsd-current/contrib/expat/doc/
H A DMakefile.am33 .PHONY: dist-hook # not inside conditional to avoid automake warning
43 dist-hook:
/freebsd-current/usr.sbin/ngctl/
H A Dwrite.c52 "write hook < -f file | byte ... >",
53 "Send a data packet down the hook named by \"hook\".",
65 const char *hook; local
74 hook = av[1];
107 sag->sg_len = 3 + strlen(hook);
109 strlcpy(sag->sg_data, hook, sizeof(sagbuf) - 2);
112 warn("writing to hook \"%s\"", hook);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp117 static void ThreadCreateHook(void *hook, bool aborted) { argument
118 Thread *thread = static_cast<Thread *>(hook);
133 static void ThreadStartHook(void *hook, thrd_t self) { argument
134 Thread *thread = static_cast<Thread *>(hook);
152 static void ThreadExitHook(void *hook, thrd_t self) { argument
153 Thread *thread = static_cast<Thread *>(hook);
223 void __sanitizer_thread_create_hook(void *hook, thrd_t thread, int error) { argument
224 __hwasan::ThreadCreateHook(hook, error != thrd_success);
227 void __sanitizer_thread_start_hook(void *hook, thrd_t self) { argument
228 __hwasan::ThreadStartHook(hook, reinterpret_cas
231 __sanitizer_thread_exit_hook(void *hook, thrd_t self) argument
[all...]
/freebsd-current/crypto/heimdal/appl/telnet/
H A DMakefile.am7 dist-hook:
/freebsd-current/contrib/openbsm/man/
H A DMakefile.am18 install-exec-hook:

Completed in 811 milliseconds

1234567891011