Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 25 of 260) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/include/linux/
Dnetfilter.h68 unsigned int hook; member
82 nf_hookfn *hook; member
92 nf_hookfn *hook; member
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()
205 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument
215 __builtin_constant_p(hook) && in nf_hook()
216 !static_key_false(&nf_hooks_needed[pf][hook])) in nf_hook()
223 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook()
[all …]
Dpci.h1913 void (*hook)(struct pci_dev *dev); member
1930 class_shift, hook) \ argument
1931 __ADDRESSABLE(hook) \
1936 ".long " #hook " - . \n" \
1946 class_shift, hook, stub) \ argument
1950 hook(dev); \
1956 class_shift, hook, stub) \ argument
1958 class_shift, hook)
1962 class_shift, hook) \ argument
1964 class_shift, hook, __UNIQUE_ID(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 …]
Dtraps.c288 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument
293 list_add(&hook->node, &undef_hook); in register_undef_hook()
297 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument
302 list_del(&hook->node); in unregister_undef_hook()
308 struct undef_hook *hook; in call_undef_hook() local
342 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook()
343 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook()
344 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
345 fn = hook->fn; in call_undef_hook()
645 const struct sys64_hook *hook, *hook_base; in do_cp15instr() local
[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/uniproton/src/om/hook/
Dprt_hook_init.c106 OS_SEC_L4_TEXT U32 OsMhookAdd(U32 hookType, OsVoidFunc hook) in OsMhookAdd() argument
135 if (*mHook == hook) { in OsMhookAdd()
159 *add = hook; in OsMhookAdd()
169 OS_SEC_L4_TEXT U32 OsMhookDel(U32 hookType, OsVoidFunc hook) in OsMhookDel() argument
190 if (*mHook == hook) { in OsMhookDel()
229 OS_SEC_L4_TEXT U32 OsHookAdd(enum HookType hookType, OsVoidFunc hook) in OsHookAdd() argument
235 if (hook == NULL) { in OsHookAdd()
239 return OsMhookAdd((U32)hookType, hook); in OsHookAdd()
245 OS_SEC_L4_TEXT U32 OsHookDel(enum HookType hookType, OsVoidFunc hook) in OsHookDel() argument
251 if (hook == NULL) { in OsHookDel()
[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/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), skb, hook); in reject_tg()
Dnf_reject_ipv4.c16 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() argument
37 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get()
115 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset() argument
123 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_send_reset()
127 if (hook == NF_INET_PRE_ROUTING && nf_reject_fill_skb_dst(oldskb)) in nf_send_reset()
188 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument
196 if (hook == NF_INET_PRE_ROUTING && nf_reject_fill_skb_dst(skb_in)) in nf_send_unreach()
204 if (nf_ip_checksum(skb_in, hook, ip_hdrlen(skb_in), proto) == 0) in nf_send_unreach()
/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);
/kernel/uniproton/src/core/kernel/irq/
Dprt_irq.c229 struct TagHwiCombineNode *hook = NULL; in OsHwiCombineDispatchHandler() local
231 hook = (struct TagHwiCombineNode *)arg; in OsHwiCombineDispatchHandler()
233 while (hook != NULL) { in OsHwiCombineDispatchHandler()
234 hook->cmbHook(hook->cmbParam); in OsHwiCombineDispatchHandler()
235 hook = hook->next; in OsHwiCombineDispatchHandler()
302 struct TagHwiCombineNode *hook = NULL; in OsHwiCombineDelete() local
305 hook = g_freeHwiComHead; in OsHwiCombineDelete()
308 if (hook == NULL) { in OsHwiCombineDelete()
312 while (hook->next != NULL) { in OsHwiCombineDelete()
313 hook = hook->next; in OsHwiCombineDelete()
[all …]
Dprt_irq_internal.h57 HwiProcFunc hook; // 非私有中断时为正常hook member
95 OS_SEC_ALW_INLINE INLINE void OsHwiFuncSet(U32 irqNum, HwiProcFunc hook) in OsHwiFuncSet() argument
99 form->hook = hook; in OsHwiFuncSet()
117 return form->hook; in OsHwiFuncGet()
144 form->hook(arg); in OsHwiHandleActive()
/kernel/linux/linux-5.10/security/integrity/ima/
Dima.h189 #define __ima_hooks(hook) \ argument
190 hook(NONE, none) \
191 hook(FILE_CHECK, file) \
192 hook(MMAP_CHECK, mmap) \
193 hook(BPRM_CHECK, bprm) \
194 hook(CREDS_CHECK, creds) \
195 hook(POST_SETATTR, post_setattr) \
196 hook(MODULE_CHECK, module) \
197 hook(FIRMWARE_CHECK, firmware) \
198 hook(KEXEC_KERNEL_CHECK, kexec_kernel) \
[all …]
/kernel/uniproton/doc/design/
Dinterface_description.md208 U32 PRT_HwiAddEntryHook(HwiEntryHook hook)
215 hook [IN] 类型#HwiEntryHook,中断进入钩子函数。
223 U32 PRT_HwiDelEntryHook(HwiEntryHook hook)
230 hook [IN] 类型#HwiEntryHook,中断进入钩子函数。
238 U32 PRT_HwiAddExitHook(HwiExitHook hook)
245 hook [IN] 类型#HwiExitHook,中断退出钩子函数。
253 U32 PRT_HwiDelExitHook(HwiExitHook hook)
260 hook [IN] 类型#HwiExitHook,中断退出钩子函数。
391 U32 PRT_ExcRegHook(ExcProcFunc hook)
398 hook [IN] 类型#ExcProcFunc,钩子函数。
[all …]
/kernel/uniproton/src/arch/cpu/armv7-m/common/hwi/
Dprt_hwi.c229 OS_SEC_L4_TEXT U32 PRT_HwiDelExitHook(HwiExitHook hook) in PRT_HwiDelExitHook() argument
231 return OsHookDel(OS_HOOK_HWI_EXIT, (OsVoidFunc)hook); in PRT_HwiDelExitHook()
233 OS_SEC_L4_TEXT U32 PRT_HwiAddExitHook(HwiExitHook hook) in PRT_HwiAddExitHook() argument
235 return OsHookAdd(OS_HOOK_HWI_EXIT, (OsVoidFunc)hook); in PRT_HwiAddExitHook()
237 OS_SEC_L4_TEXT U32 PRT_HwiDelEntryHook(HwiEntryHook hook) in PRT_HwiDelEntryHook() argument
239 return OsHookDel(OS_HOOK_HWI_ENTRY, (OsVoidFunc)hook); in PRT_HwiDelEntryHook()
241 OS_SEC_L4_TEXT U32 PRT_HwiAddEntryHook(HwiEntryHook hook) in PRT_HwiAddEntryHook() argument
243 return OsHookAdd(OS_HOOK_HWI_ENTRY, (OsVoidFunc)hook); in PRT_HwiAddEntryHook()
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
Dnft_queue.sh97 type filter hook prerouting priority $prio; policy accept;
101 type filter hook input priority $prio; policy accept;
105 type filter hook forward priority $prio; policy accept;
110 type filter hook output priority $prio; policy accept;
115 type filter hook postrouting priority $prio; policy accept;
128 type filter hook prerouting priority $prio; policy accept;
132 type filter hook input priority $prio; policy accept;
136 type filter hook forward priority $prio; policy accept;
140 type filter hook output priority $prio; policy accept;
144 type filter hook postrouting priority $prio; policy accept;
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_quirks.c60 void (*hook)(struct drm_i915_private *i915); member
65 void (*hook)(struct drm_i915_private *i915); member
97 .hook = quirk_invert_brightness,
179 q->hook(i915); in intel_init_quirks()
183 intel_dmi_quirks[i].hook(i915); in intel_init_quirks()
/kernel/uniproton/src/core/kernel/sys/
Dprt_sys.c73 OS_SEC_L4_TEXT U32 PRT_IdleAddHook(IdleHook hook) in PRT_IdleAddHook() argument
75 return OsHookAdd(OS_HOOK_IDLE_PERIOD, (OsVoidFunc)hook); in PRT_IdleAddHook()
77 OS_SEC_L4_TEXT U32 PRT_IdleDelHook(IdleHook hook) in PRT_IdleDelHook() argument
79 return OsHookDel(OS_HOOK_IDLE_PERIOD, (OsVoidFunc)hook); in PRT_IdleDelHook()
/kernel/liteos_a/kernel/common/
Dlos_excinfo.c123 VOID LOS_ExcInfoRegHook(UINT32 startAddr, UINT32 space, CHAR *buf, log_read_write_fn hook) in LOS_ExcInfoRegHook() argument
125 if ((hook == NULL) || (buf == NULL)) { in LOS_ExcInfoRegHook()
133 g_excInfoRW = hook; in LOS_ExcInfoRegHook()
185 log_read_write_fn hook = GetExcInfoRW(); in OsShellCmdReadExcInfo() local
186 if (hook != NULL) { in OsShellCmdReadExcInfo()
187 hook(GetRecordAddr(), recordSpace, 1, buf); in OsShellCmdReadExcInfo()
Dlos_init.c88 if (module->hook != NULL) { in InitLevelCall()
91 ret = (UINT32)module->hook(); in InitLevelCall()
97 module->hook(); in InitLevelCall()
103 name, module->name, module->hook, ret); in InitLevelCall()
/kernel/uniproton/src/include/uapi/
Dprt_idle.h64 extern U32 PRT_IdleAddPrefixHook(IdleHook hook);
86 extern U32 PRT_IdleAddHook(IdleHook hook);
105 extern U32 PRT_IdleDelHook(IdleHook hook);
Dprt_hwi.h428 extern U32 PRT_HwiAddEntryHook(HwiEntryHook hook);
449 extern U32 PRT_HwiDelEntryHook(HwiEntryHook hook);
470 extern U32 PRT_HwiAddExitHook(HwiExitHook hook);
491 extern U32 PRT_HwiDelExitHook(HwiExitHook hook);
/kernel/uniproton/src/core/kernel/task/
Dprt_task.c96 OS_SEC_L4_TEXT U32 PRT_TaskDelSwitchHook(TskSwitchHook hook) in PRT_TaskDelSwitchHook() argument
98 return OsHookDel(OS_HOOK_TSK_SWITCH, (OsVoidFunc)(uintptr_t)hook); in PRT_TaskDelSwitchHook()
100 OS_SEC_L4_TEXT U32 PRT_TaskAddSwitchHook(TskSwitchHook hook) in PRT_TaskAddSwitchHook() argument
102 return OsHookAdd(OS_HOOK_TSK_SWITCH, (OsVoidFunc)(uintptr_t)hook); in PRT_TaskAddSwitchHook()
/kernel/uniproton/src/core/kernel/kexc/
Dprt_kexc.c30 OS_SEC_L4_TEXT U32 PRT_ExcRegHook(ExcProcFunc hook) in PRT_ExcRegHook() argument
34 if (hook == NULL) { in PRT_ExcRegHook()
40 g_excModInfo.excepHook = hook; in PRT_ExcRegHook()
/kernel/linux/linux-5.10/include/net/netfilter/ipv4/
Dnf_reject.h10 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook);
11 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook);
14 struct tcphdr *_oth, int hook);

1234567891011