| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | tc_bpf.c | 26 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/ |
| D | nf_bpf_link.c | 38 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 …]
|
| D | utils.c | 10 __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/ |
| D | netfilter.h | 68 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/ |
| D | netfilter.h | 69 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/ |
| D | utils.c | 10 __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/ |
| D | prt_hook_external.h | 40 #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/ |
| D | debug-monitors.c | 179 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/ |
| D | debug-monitors.c | 179 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/ |
| D | prt_hook_init.c | 104 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/ |
| D | drm_simple_kms_helper.h | 34 * 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 …]
|
| D | drm_modeset_helper_vtables.h | 75 * 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/ |
| D | netlink.c | 542 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/ |
| D | los_hook.h | 52 * 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/ |
| D | los_hook.h | 48 * 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/ |
| D | los_hook_types.h | 52 …/* 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/ |
| D | ipt_REJECT.c | 34 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/ |
| D | ipt_REJECT.c | 34 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/ |
| D | drm_modeset_helper_vtables.h | 71 * 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 …]
|
| D | drm_simple_kms_helper.h | 34 * 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/ |
| D | los_hook_types.h | 54 …/* 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/ |
| D | ima.h | 49 /* 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/ |
| D | debug-monitors.h | 70 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/ |
| D | prt_irq.c | 225 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/ |
| D | debug-monitors.h | 82 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);
|