Home
last modified time | relevance | path

Searched full:hook (Results 1 – 25 of 1782) sorted by relevance

12345678910>>...72

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
Dtc_bpf.c26 static int test_tc_bpf_basic(const struct bpf_tc_hook *hook, int fd) in test_tc_bpf_basic() argument
37 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic()
48 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic()
53 ret = bpf_tc_query(hook, &opts); in test_tc_bpf_basic()
64 ret = bpf_tc_detach(hook, &opts); in test_tc_bpf_basic()
69 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd) in test_tc_bpf_api() argument
77 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook = NULL")) in test_tc_bpf_api()
80 /* hook ifindex = 0 */ in test_tc_bpf_api()
82 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex == 0")) in test_tc_bpf_api()
86 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex == 0")) in test_tc_bpf_api()
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dnf_bpf_link.c38 const struct nf_defrag_hook *hook; in get_proto_defrag_hook() local
43 hook = rcu_dereference(*ptr_global_hook); in get_proto_defrag_hook()
44 if (!hook) { in get_proto_defrag_hook()
51 hook = rcu_dereference(*ptr_global_hook); in get_proto_defrag_hook()
54 if (hook && try_module_get(hook->owner)) { in get_proto_defrag_hook()
56 hook = rcu_pointer_handoff(hook); in get_proto_defrag_hook()
58 WARN_ONCE(!hook, "%s has bad registration", mod); in get_proto_defrag_hook()
59 hook = ERR_PTR(-ENOENT); in get_proto_defrag_hook()
63 if (!IS_ERR(hook)) { in get_proto_defrag_hook()
64 err = hook->enable(link->net); in get_proto_defrag_hook()
[all …]
Dutils.c10 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum() argument
18 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip_checksum()
43 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum_partial() argument
53 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
64 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum() argument
72 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip6_checksum()
97 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum_partial() argument
108 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial()
123 __sum16 nf_checksum(struct sk_buff *skb, unsigned int hook, in nf_checksum() argument
131 csum = nf_ip_checksum(skb, hook, dataoff, protocol); in nf_checksum()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnetfilter.h68 unsigned int hook; member
82 nf_hookfn *hook; member
92 nf_hookfn *hook; member
106 /* trailer: pointers to original orig_ops of each hook,
111 * needed in slow path (hook register/unregister):
115 * only needed when a hook is deleted, not during
136 return entry->hook(entry->priv, skb, state); in nf_hook_entry_hookfn()
140 unsigned int hook, in nf_hook_state_init() argument
148 p->hook = hook; in nf_hook_state_init()
176 /* Function to register/unregister hook points. */
[all …]
/kernel/linux/linux-6.6/include/linux/
Dnetfilter.h69 u8 hook; member
89 nf_hookfn *hook; member
100 nf_hookfn *hook; member
114 /* trailer: pointers to original orig_ops of each hook,
119 * needed in slow path (hook register/unregister):
123 * only needed when a hook is deleted, not during
144 return entry->hook(entry->priv, skb, state); in nf_hook_entry_hookfn()
148 unsigned int hook, in nf_hook_state_init() argument
156 p->hook = hook; in nf_hook_state_init()
184 /* Function to register/unregister hook points. */
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dutils.c10 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum() argument
18 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip_checksum()
43 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum_partial() argument
53 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
64 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum() argument
72 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip6_checksum()
97 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum_partial() argument
108 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial()
123 __sum16 nf_checksum(struct sk_buff *skb, unsigned int hook, in nf_checksum() argument
131 csum = nf_ip_checksum(skb, hook, dataoff, protocol); in nf_checksum()
[all …]
/kernel/uniproton/src/om/include/
Dprt_hook_external.h40 #define OS_MHOOK_IS_VALID(hook) ((uintptr_t)(hook) > OS_MHOOK_BOUNDARY) argument
42 #define OS_MHOOK_NOT_BOUNDARY(hook) ((uintptr_t)(hook) != OS_MHOOK_BOUNDARY) argument
44 OS_SEC_ALW_INLINE INLINE bool OsMhookBoundaryCheck(OsVoidFunc hook) in OsMhookBoundaryCheck() argument
46 return ((uintptr_t)hook <= OS_MHOOK_BOUNDARY); in OsMhookBoundaryCheck()
49 OS_SEC_ALW_INLINE INLINE bool OsMhookValidCheck(OsVoidFunc hook) in OsMhookValidCheck() argument
51 return (hook != OS_MHOOK_NODE_DEAD); in OsMhookValidCheck()
54 #define OS_MHOOK_ACTIVATE_PROC(hook, funcType, pfn, list) \ argument
56 OsVoidFunc *tmp_ = hook; \
67 OsVoidFunc *hook = g_hookCb[(hookType)].mulHook; \
69 if (hook != NULL) { \
[all …]
/kernel/linux/linux-6.6/arch/arm64/kernel/
Ddebug-monitors.c179 void register_user_step_hook(struct step_hook *hook) in register_user_step_hook() argument
181 register_debug_hook(&hook->node, &user_step_hook); in register_user_step_hook()
184 void unregister_user_step_hook(struct step_hook *hook) in unregister_user_step_hook() argument
186 unregister_debug_hook(&hook->node); in unregister_user_step_hook()
189 void register_kernel_step_hook(struct step_hook *hook) in register_kernel_step_hook() argument
191 register_debug_hook(&hook->node, &kernel_step_hook); in register_kernel_step_hook()
194 void unregister_kernel_step_hook(struct step_hook *hook) in unregister_kernel_step_hook() argument
196 unregister_debug_hook(&hook->node); in unregister_kernel_step_hook()
207 struct step_hook *hook; in call_step_hook() local
217 list_for_each_entry_rcu(hook, list, node) { in call_step_hook()
[all …]
/kernel/linux/linux-5.10/arch/arm64/kernel/
Ddebug-monitors.c179 void register_user_step_hook(struct step_hook *hook) in register_user_step_hook() argument
181 register_debug_hook(&hook->node, &user_step_hook); in register_user_step_hook()
184 void unregister_user_step_hook(struct step_hook *hook) in unregister_user_step_hook() argument
186 unregister_debug_hook(&hook->node); in unregister_user_step_hook()
189 void register_kernel_step_hook(struct step_hook *hook) in register_kernel_step_hook() argument
191 register_debug_hook(&hook->node, &kernel_step_hook); in register_kernel_step_hook()
194 void unregister_kernel_step_hook(struct step_hook *hook) in unregister_kernel_step_hook() argument
196 unregister_debug_hook(&hook->node); in unregister_kernel_step_hook()
207 struct step_hook *hook; in call_step_hook() local
217 list_for_each_entry_rcu(hook, list, node) { in call_step_hook()
[all …]
/kernel/uniproton/src/om/hook/
Dprt_hook_init.c104 OS_SEC_L4_TEXT U32 OsMhookAdd(U32 hookType, OsVoidFunc hook) in OsMhookAdd() argument
133 if (*mHook == hook) { in OsMhookAdd()
157 *add = hook; in OsMhookAdd()
167 OS_SEC_L4_TEXT U32 OsMhookDel(U32 hookType, OsVoidFunc hook) in OsMhookDel() argument
188 if (*mHook == hook) { in OsMhookDel()
227 OS_SEC_L4_TEXT U32 OsHookAdd(enum HookType hookType, OsVoidFunc hook) in OsHookAdd() argument
233 if (hook == NULL) { in OsHookAdd()
237 return OsMhookAdd((U32)hookType, hook); in OsHookAdd()
243 OS_SEC_L4_TEXT U32 OsHookDel(enum HookType hookType, OsVoidFunc hook) in OsHookDel() argument
249 if (hook == NULL) { in OsHookDel()
[all …]
/kernel/linux/linux-6.6/include/drm/
Ddrm_simple_kms_helper.h34 * This hook is used by the probe helpers to filter the mode list in
60 * This hook is optional.
70 * This hook is optional.
82 * This hook is optional.
98 * This hook is optional.
116 * the documentation for the &drm_plane_helper_funcs.prepare_fb hook for
119 * For GEM drivers who neither have a @prepare_fb nor @cleanup_fb hook
123 * their @prepare_fb hook.
132 * the documentation for the &drm_plane_helper_funcs.cleanup_fb hook for
142 * the documentation for the &drm_plane_helper_funcs.begin_fb_access hook for
[all …]
Ddrm_modeset_helper_vtables.h75 * DRM_MODE_DPMS_OFF if the @disable hook isn't used.
78 * also support using this hook for enabling and disabling a CRTC to
90 * @dpms hook with DRM_MODE_DPMS_OFF.
93 * also support using this hook for disabling a CRTC to facilitate
104 * drivers ended up implementing this by calling their @dpms hook with
108 * also support using this hook for enabling a CRTC to facilitate
125 * This hook is used by the probe helpers to filter the mode list in
224 * should not use this hook. This is because the helper library calls
225 * this hook only once per mode change and not every time the display
279 * &drm_encoder_helper_funcs.disable hook. If that sequence is too
[all …]
/kernel/linux/linux-6.6/tools/lib/bpf/
Dnetlink.c542 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config() argument
545 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config()
549 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config()
582 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify() argument
588 ret = attach_point_to_config(hook, &config); in tc_qdisc_modify()
597 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
606 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl() argument
608 return tc_qdisc_modify(hook, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_EXCL); in tc_qdisc_create_excl()
611 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete() argument
613 return tc_qdisc_modify(hook, RTM_DELQDISC, 0); in tc_qdisc_delete()
[all …]
/kernel/liteos_a/kernel/include/
Dlos_hook.h52 * Hook error code: The hook pool is insufficient.
56 * Solution: Deregister the registered hook.
62 * Hook error code: Invalid parameter.
72 * Hook error code: Invalid parameter.
82 * @brief Registration of hook function.
85 * This API is used to register hook function.
92 * @param hookType [IN] Register the type of the hook.
104 * @brief Deregistration of hook function.
107 * This API is used to deregister hook function.
114 * @param hookType [IN] Deregister the type of the hook.
[all …]
/kernel/liteos_m/utils/
Dlos_hook.h48 * Hook error code: The hook pool is insufficient.
52 * Solution: Deregister the registered hook.
58 * Hook error code: Invalid parameter.
68 * Hook error code: Invalid parameter.
78 * @brief Registration of hook function.
81 * This API is used to register hook function.
88 * @param hookType [IN] Register the type of the hook.
100 * @brief Deregistration of hook function.
103 * This API is used to deregister hook function.
110 * @param hookType [IN] Deregister the type of the hook.
[all …]
/kernel/liteos_a/kernel/extended/hook/include/
Dlos_hook_types.h52 …/* Hook types supported by memory modules */ …
59 …/* Hook types supported by event modules */ …
66 …/* Hook types supported by queue modules */ …
73 …/* Hook types supported by semaphore modules */ …
79 …/* Hook types supported by mutex modules */ …
84 …/* Hook types supported by task modules */ …
93 …/* Hook types supported by interrupt modules */ …
97 …/* Hook types supported by swtmr modules */ …
103 …/* Hook types supported by liteipc modules */ …
113 …/* Hook types supported by usr modules */ …
[all …]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dipt_REJECT.c34 int hook = xt_hooknum(par); in reject_tg() local
38 nf_send_unreach(skb, ICMP_NET_UNREACH, hook); in reject_tg()
41 nf_send_unreach(skb, ICMP_HOST_UNREACH, hook); in reject_tg()
44 nf_send_unreach(skb, ICMP_PROT_UNREACH, hook); in reject_tg()
47 nf_send_unreach(skb, ICMP_PORT_UNREACH, hook); in reject_tg()
50 nf_send_unreach(skb, ICMP_NET_ANO, hook); in reject_tg()
53 nf_send_unreach(skb, ICMP_HOST_ANO, hook); in reject_tg()
56 nf_send_unreach(skb, ICMP_PKT_FILTERED, hook); in reject_tg()
59 nf_send_reset(xt_net(par), par->state->sk, skb, hook); in reject_tg()
/kernel/linux/linux-6.6/net/ipv4/netfilter/
Dipt_REJECT.c34 int hook = xt_hooknum(par); in reject_tg() local
38 nf_send_unreach(skb, ICMP_NET_UNREACH, hook); in reject_tg()
41 nf_send_unreach(skb, ICMP_HOST_UNREACH, hook); in reject_tg()
44 nf_send_unreach(skb, ICMP_PROT_UNREACH, hook); in reject_tg()
47 nf_send_unreach(skb, ICMP_PORT_UNREACH, hook); in reject_tg()
50 nf_send_unreach(skb, ICMP_NET_ANO, hook); in reject_tg()
53 nf_send_unreach(skb, ICMP_HOST_ANO, hook); in reject_tg()
56 nf_send_unreach(skb, ICMP_PKT_FILTERED, hook); in reject_tg()
59 nf_send_reset(xt_net(par), par->state->sk, skb, hook); in reject_tg()
/kernel/linux/linux-5.10/include/drm/
Ddrm_modeset_helper_vtables.h71 * DRM_MODE_DPMS_OFF if the @disable hook isn't used.
74 * also support using this hook for enabling and disabling a CRTC to
86 * @dpms hook with DRM_MODE_DPMS_OFF.
89 * also support using this hook for disabling a CRTC to facilitate
100 * drivers ended up implementing this by calling their @dpms hook with
104 * also support using this hook for enabling a CRTC to facilitate
121 * This hook is used by the probe helpers to filter the mode list in
217 * @mode_set hook in drm_helper_crtc_mode_set().
222 * should not use this hook. This is because the helper library calls
223 * this hook only once per mode change and not every time the display
[all …]
Ddrm_simple_kms_helper.h34 * This hook is used by the probe helpers to filter the mode list in
60 * This hook is optional.
70 * This hook is optional.
82 * This hook is optional.
98 * This hook is optional.
116 * the documentation for the &drm_plane_helper_funcs.prepare_fb hook for
120 * drm_gem_fb_simple_display_pipe_prepare_fb() for this hook.
129 * the documentation for the &drm_plane_helper_funcs.cleanup_fb hook for
139 * the documentation for the &drm_crtc_funcs.enable_vblank hook for
148 * the documentation for the &drm_crtc_funcs.disable_vblank hook for
/kernel/liteos_m/utils/internal/
Dlos_hook_types.h54 …/* Hook types supported by memory modules */ …
61 …/* Hook types supported by event modules */ …
68 …/* Hook types supported by queue modules */ …
79 …/* Hook types supported by semaphore modules */ …
85 …/* Hook types supported by mutex modules */ …
90 …/* Hook types supported by task modules */ …
99 …/* Hook types supported by interrupt modules */ …
103 …/* Hook types supported by swtmr modules */ …
116 /* Used to manage hook pools */
118 /* All supported hook types */
[all …]
/kernel/linux/linux-6.6/security/integrity/ima/
Dima.h49 /* bitset of digests algorithms allowed in the setxattr hook */
189 #define __ima_hooks(hook) \ argument
190 hook(NONE, none) \
191 hook(FILE_CHECK, file) \
192 hook(MMAP_CHECK, mmap) \
193 hook(MMAP_CHECK_REQPROT, mmap_reqprot) \
194 hook(BPRM_CHECK, bprm) \
195 hook(CREDS_CHECK, creds) \
196 hook(POST_SETATTR, post_setattr) \
197 hook(MODULE_CHECK, module) \
[all …]
/kernel/linux/linux-6.6/arch/arm64/include/asm/
Ddebug-monitors.h70 void register_user_step_hook(struct step_hook *hook);
71 void unregister_user_step_hook(struct step_hook *hook);
73 void register_kernel_step_hook(struct step_hook *hook);
74 void unregister_kernel_step_hook(struct step_hook *hook);
83 void register_user_break_hook(struct break_hook *hook);
84 void unregister_user_break_hook(struct break_hook *hook);
86 void register_kernel_break_hook(struct break_hook *hook);
87 void unregister_kernel_break_hook(struct break_hook *hook);
/kernel/uniproton/src/core/kernel/irq/
Dprt_irq.c225 struct TagHwiCombineNode *hook = NULL; in OsHwiCombineDispatchHandler() local
227 hook = (struct TagHwiCombineNode *)arg; in OsHwiCombineDispatchHandler()
229 while (hook != NULL) { in OsHwiCombineDispatchHandler()
230 hook->cmbHook(hook->cmbParam); in OsHwiCombineDispatchHandler()
231 hook = hook->next; in OsHwiCombineDispatchHandler()
298 struct TagHwiCombineNode *hook = NULL; in OsHwiCombineDelete() local
301 hook = g_freeHwiComHead; in OsHwiCombineDelete()
304 if (hook == NULL) { in OsHwiCombineDelete()
308 while (hook->next != NULL) { in OsHwiCombineDelete()
309 hook = hook->next; in OsHwiCombineDelete()
[all …]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Ddebug-monitors.h82 void register_user_step_hook(struct step_hook *hook);
83 void unregister_user_step_hook(struct step_hook *hook);
85 void register_kernel_step_hook(struct step_hook *hook);
86 void unregister_kernel_step_hook(struct step_hook *hook);
95 void register_user_break_hook(struct break_hook *hook);
96 void unregister_user_break_hook(struct break_hook *hook);
98 void register_kernel_break_hook(struct break_hook *hook);
99 void unregister_kernel_break_hook(struct break_hook *hook);

12345678910>>...72