Home
last modified time | relevance | path

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

123456789

/linux/tools/testing/selftests/bpf/prog_tests/
A Dtc_bpf.c36 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic()
47 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic()
52 ret = bpf_tc_query(hook, &opts); in test_tc_bpf_basic()
63 ret = bpf_tc_detach(hook, &opts); in test_tc_bpf_basic()
245 ret = bpf_tc_query(hook, NULL); in test_tc_bpf_api()
367 hook.parent = 0; in test_tc_bpf()
368 bpf_tc_hook_destroy(&hook); in test_tc_bpf()
374 bpf_tc_hook_destroy(&hook); in test_tc_bpf()
381 bpf_tc_hook_destroy(&hook); in test_tc_bpf()
387 bpf_tc_hook_destroy(&hook); in test_tc_bpf()
[all …]
/linux/include/linux/
A Dnetfilter.h68 u8 hook; member
87 nf_hookfn *hook; member
98 nf_hookfn *hook; member
142 return entry->hook(entry->priv, skb, state); in nf_hook_entry_hookfn()
146 unsigned int hook, in nf_hook_state_init() argument
154 p->hook = hook; in nf_hook_state_init()
221 __builtin_constant_p(hook) && in nf_hook()
222 !static_key_false(&nf_hooks_needed[pf][hook])) in nf_hook()
259 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook()
320 __builtin_constant_p(hook) && in NF_HOOK_LIST()
[all …]
A Dpci.h2025 class_shift, hook, __UNIQUE_ID(hook))
2038 hook, vendor, device, class, class_shift, hook)
2042 hook, vendor, device, class, class_shift, hook)
2046 hook, vendor, device, class, class_shift, hook)
2050 hook, vendor, device, class, class_shift, hook)
2070 hook, vendor, device, PCI_ANY_ID, 0, hook)
2073 hook, vendor, device, PCI_ANY_ID, 0, hook)
2076 hook, vendor, device, PCI_ANY_ID, 0, hook)
2079 hook, vendor, device, PCI_ANY_ID, 0, hook)
2082 resume##hook, vendor, device, PCI_ANY_ID, 0, hook)
[all …]
/linux/arch/arm64/kernel/
A Ddebug-monitors.c186 unregister_debug_hook(&hook->node); in unregister_user_step_hook()
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()
218 retval = hook->fn(regs, esr); in call_step_hook()
289 unregister_debug_hook(&hook->node); in unregister_user_break_hook()
299 unregister_debug_hook(&hook->node); in unregister_kernel_break_hook()
304 struct break_hook *hook; in call_break_hook() local
314 list_for_each_entry_rcu(hook, list, node) { in call_break_hook()
317 if ((comment & ~hook->mask) == hook->imm) in call_break_hook()
[all …]
A Dtraps.c393 list_del(&hook->node); in unregister_undef_hook()
399 struct undef_hook *hook; in call_undef_hook() local
434 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook()
435 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
436 fn = hook->fn; in call_undef_hook()
766 for (hook = hook_base; hook->handler; hook++) in do_cp15instr()
767 if ((hook->esr_mask & esr) == hook->esr_val) { in do_cp15instr()
768 hook->handler(esr, regs); in do_cp15instr()
786 for (hook = sys64_hooks; hook->handler; hook++) in do_sysinstr()
787 if ((hook->esr_mask & esr) == hook->esr_val) { in do_sysinstr()
[all …]
A Darmv8_deprecated.c65 struct undef_hook *hook; in register_emulation_hooks() local
69 for (hook = ops->hooks; hook->instr_mask; hook++) in register_emulation_hooks()
70 register_undef_hook(hook); in register_emulation_hooks()
77 struct undef_hook *hook; in remove_emulation_hooks() local
81 for (hook = ops->hooks; hook->instr_mask; hook++) in remove_emulation_hooks()
82 unregister_undef_hook(hook); in remove_emulation_hooks()
/linux/tools/lib/bpf/
A Dnetlink.c388 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config()
459 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create()
460 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create()
463 ret = tc_qdisc_create_excl(hook); in bpf_tc_hook_create()
473 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy()
474 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy()
564 if (!hook || !opts || in bpf_tc_attach()
565 !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_attach()
637 if (!hook || in __bpf_tc_detach()
638 !OPTS_VALID(hook, bpf_tc_hook) || in __bpf_tc_detach()
[all …]
/linux/net/netfilter/
A 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()
53 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
72 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip6_checksum()
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()
134 csum = nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_checksum()
150 csum = nf_ip_checksum_partial(skb, hook, dataoff, len, in nf_checksum_partial()
154 csum = nf_ip6_checksum_partial(skb, hook, dataoff, len, in nf_checksum_partial()
[all …]
A Dnfnetlink_hook.c56 u8 hook; member
133 ret = snprintf(sym, sizeof(sym), "%ps", ops->hook); in nfnl_hook_dump_one()
194 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) in nfnl_hook_entries_head()
199 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) in nfnl_hook_entries_head()
205 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) in nfnl_hook_entries_head()
212 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) in nfnl_hook_entries_head()
219 if (hook >= ARRAY_SIZE(net->nf.hooks_decnet)) in nfnl_hook_entries_head()
226 if (hook >= NF_NETDEV_NUMHOOKS) in nfnl_hook_entries_head()
237 if (hook == NF_NETDEV_INGRESS) in nfnl_hook_entries_head()
241 if (hook == NF_NETDEV_EGRESS) in nfnl_hook_entries_head()
[all …]
A Dnft_reject_netdev.c29 int hook) in nft_reject_netdev_send_v4_tcp_reset() argument
33 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, dev, hook); in nft_reject_netdev_send_v4_tcp_reset()
43 int hook, u8 code) in nft_reject_netdev_send_v4_unreach() argument
47 nskb = nf_reject_skb_v4_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v4_unreach()
57 int hook) in nft_reject_netdev_send_v6_tcp_reset() argument
61 nskb = nf_reject_skb_v6_tcp_reset(net, oldskb, dev, hook); in nft_reject_netdev_send_v6_tcp_reset()
72 int hook, u8 code) in nft_reject_netdev_send_v6_unreach() argument
76 nskb = nf_reject_skb_v6_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v6_unreach()
A Dnf_tables_api.c1807 if (!hook) { in nft_netdev_hook_alloc()
1825 return hook; in nft_netdev_hook_alloc()
1828 kfree(hook); in nft_netdev_hook_alloc()
1840 return hook; in nft_hook_list_find()
1866 kfree(hook); in nf_tables_parse_netdev_hooks()
1884 kfree(hook); in nf_tables_parse_netdev_hooks()
2032 ops->hook = hook->type->hooks[ops->hooknum]; in nft_basechain_hook_init()
7148 hook->ops.hook = flowtable->data.type->hook; in nft_flowtable_parse_hook()
7489 if (!hook) { in nft_delflowtable_hook()
7515 if (!hook) in nft_delflowtable_hook()
[all …]
/linux/net/ipv4/netfilter/
A 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()
A Dnf_reject_ipv4.c42 int hook) in nf_reject_skb_v4_tcp_reset() argument
52 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_reject_skb_v4_tcp_reset()
77 int hook, u8 code) in nf_reject_skb_v4_unreach() argument
106 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) in nf_reject_skb_v4_unreach()
138 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() argument
159 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get()
238 int hook) in nf_send_reset() argument
246 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_send_reset()
250 if ((hook == NF_INET_PRE_ROUTING || hook == NF_INET_INGRESS) && in nf_send_reset()
311 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument
[all …]
/linux/arch/arm64/include/asm/
A 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);
/linux/security/integrity/ima/
A 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) \
196 hook(MODULE_CHECK, module) \
197 hook(FIRMWARE_CHECK, firmware) \
200 hook(POLICY_CHECK, policy) \
202 hook(KEY_CHECK, key) \
[all …]
/linux/include/net/netfilter/ipv4/
A Dnf_reject.h10 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook);
12 int hook);
14 struct tcphdr *_oth, int hook);
24 int hook, u8 code);
28 int hook);
/linux/net/ipv6/netfilter/
A Dnf_reject_ipv6.c15 static bool nf_reject_v6_csum_ok(struct sk_buff *skb, int hook) in nf_reject_v6_csum_ok() argument
37 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in nf_reject_v6_csum_ok()
62 int hook) in nf_reject_skb_v6_tcp_reset() argument
97 int hook, u8 code) in nf_reject_skb_v6_unreach() argument
115 if (!nf_reject_v6_csum_ok(oldskb, hook)) in nf_reject_skb_v6_unreach()
151 unsigned int *otcplen, int hook) in nf_reject_ip6_tcphdr_get() argument
188 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get()
279 int hook) in nf_send_reset6() argument
308 if (hook == NF_INET_PRE_ROUTING || hook == NF_INET_INGRESS) { in nf_send_reset6()
375 static bool reject6_csum_ok(struct sk_buff *skb, int hook) in reject6_csum_ok() argument
[all …]
/linux/net/bridge/netfilter/
A Dnft_reject_bridge.c48 int hook) in nft_reject_br_send_v4_tcp_reset() argument
52 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, dev, hook); in nft_reject_br_send_v4_tcp_reset()
64 int hook, u8 code) in nft_reject_br_send_v4_unreach() argument
68 nskb = nf_reject_skb_v4_unreach(net, oldskb, dev, hook, code); in nft_reject_br_send_v4_unreach()
80 int hook) in nft_reject_br_send_v6_tcp_reset() argument
84 nskb = nf_reject_skb_v6_tcp_reset(net, oldskb, dev, hook); in nft_reject_br_send_v6_tcp_reset()
97 int hook, u8 code) in nft_reject_br_send_v6_unreach() argument
101 nskb = nf_reject_skb_v6_unreach(net, oldskb, dev, hook, code); in nft_reject_br_send_v6_unreach()
/linux/tools/testing/selftests/netfilter/
A Dnft_queue.sh105 type filter hook input priority $prio; policy accept;
109 type filter hook forward priority $prio; policy accept;
114 type filter hook output priority $prio; policy accept;
136 type filter hook input priority $prio; policy accept;
140 type filter hook forward priority $prio; policy accept;
144 type filter hook output priority $prio; policy accept;
189 type filter hook forward priority 0; policy accept;
305 type filter hook output priority 0; policy accept;
309 type filter hook postrouting priority 0; policy accept;
354 type filter hook output priority 0; policy accept;
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_quirks.c66 void (*hook)(struct drm_i915_private *i915); member
71 void (*hook)(struct drm_i915_private *i915); member
109 .hook = quirk_invert_brightness,
131 .hook = quirk_no_pps_backlight_power_hook,
208 q->hook(i915); in intel_init_quirks()
212 intel_dmi_quirks[i].hook(i915); in intel_init_quirks()
/linux/include/net/netfilter/ipv6/
A Dnf_reject.h11 int hook);
14 unsigned int *otcplen, int hook);
25 int hook);
29 int hook, u8 code);
/linux/drivers/acpi/
A Dbattery.c701 hook->remove_battery(battery->bat); in __battery_hook_unregister()
703 list_del(&hook->list); in __battery_hook_unregister()
711 __battery_hook_unregister(hook, 1); in battery_hook_unregister()
720 INIT_LIST_HEAD(&hook->list); in battery_hook_register()
721 list_add(&hook->list, &battery_hook_list); in battery_hook_register()
729 if (hook->add_battery(battery->bat)) { in battery_hook_register()
737 __battery_hook_unregister(hook, 0); in battery_hook_register()
782 struct acpi_battery_hook *hook; in battery_hook_remove_battery() local
790 hook->remove_battery(battery->bat); in battery_hook_remove_battery()
799 struct acpi_battery_hook *hook; in battery_hook_exit() local
[all …]
/linux/arch/csky/kernel/
A Dftrace.c70 static int ftrace_check_current_nop(unsigned long hook) in ftrace_check_current_nop() argument
73 unsigned long hook_pos = hook - 2; in ftrace_check_current_nop()
91 static int ftrace_modify_code(unsigned long hook, unsigned long target, in ftrace_modify_code() argument
96 unsigned long hook_pos = hook - 2; in ftrace_modify_code()
99 make_jbsr(target, hook, call, nolr); in ftrace_modify_code()
/linux/sound/core/
A Dvmaster.c36 void (*hook)(void *private_data, int); member
130 if (master->hook) in master_init()
131 master->hook(master->hook_private_data, master->val); in master_init()
351 if (master->hook && !first_init) in master_put()
352 master->hook(master->hook_private_data, master->val); in master_put()
448 void (*hook)(void *private_data, int), in snd_ctl_add_vmaster_hook()
452 master->hook = hook; in snd_ctl_add_vmaster_hook()
485 if (master->hook && !first_init) in snd_ctl_sync_vmaster()
486 master->hook(master->hook_private_data, master->val); in snd_ctl_sync_vmaster()
/linux/arch/arm/kernel/
A Dtraps.c396 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument
401 list_add(&hook->node, &undef_hook); in register_undef_hook()
405 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument
410 list_del(&hook->node); in unregister_undef_hook()
417 struct undef_hook *hook; in call_undef_hook() local
422 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook()
423 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook()
424 (regs->ARM_cpsr & hook->cpsr_mask) == hook->cpsr_val) in call_undef_hook()
425 fn = hook->fn; in call_undef_hook()

Completed in 72 milliseconds

123456789