/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | tc_bpf.c | 36 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 …]
|
A D | test_tunnel.c | 214 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog() argument 222 ret = bpf_tc_hook_create(hook); in attach_tc_prog() 227 hook->attach_point = BPF_TC_INGRESS; in attach_tc_prog() 228 ret = bpf_tc_attach(hook, &opts1); in attach_tc_prog() 230 bpf_tc_hook_destroy(hook); in attach_tc_prog() 236 hook->attach_point = BPF_TC_EGRESS; in attach_tc_prog() 237 ret = bpf_tc_attach(hook, &opts2); in attach_tc_prog() 239 bpf_tc_hook_destroy(hook); in attach_tc_prog()
|
A D | xfrm_info.c | 87 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog() argument 95 ret = bpf_tc_hook_create(hook); in attach_tc_prog() 100 hook->attach_point = BPF_TC_INGRESS; in attach_tc_prog() 101 ret = bpf_tc_attach(hook, &opts1); in attach_tc_prog() 103 bpf_tc_hook_destroy(hook); in attach_tc_prog() 109 hook->attach_point = BPF_TC_EGRESS; in attach_tc_prog() 110 ret = bpf_tc_attach(hook, &opts2); in attach_tc_prog() 112 bpf_tc_hook_destroy(hook); in attach_tc_prog()
|
/linux-6.3-rc2/arch/arm64/kernel/ |
A D | debug-monitors.c | 186 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 …]
|
/linux-6.3-rc2/include/linux/ |
A D | netfilter.h | 68 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() 254 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook() 315 __builtin_constant_p(hook) && in NF_HOOK_LIST() [all …]
|
A D | pci.h | 2096 class_shift, hook, __UNIQUE_ID(hook)) 2109 hook, vendor, device, class, class_shift, hook) 2113 hook, vendor, device, class, class_shift, hook) 2117 hook, vendor, device, class, class_shift, hook) 2121 hook, vendor, device, class, class_shift, hook) 2141 hook, vendor, device, PCI_ANY_ID, 0, hook) 2144 hook, vendor, device, PCI_ANY_ID, 0, hook) 2147 hook, vendor, device, PCI_ANY_ID, 0, hook) 2150 hook, vendor, device, PCI_ANY_ID, 0, hook) 2153 resume##hook, vendor, device, PCI_ANY_ID, 0, hook) [all …]
|
/linux-6.3-rc2/net/netfilter/ |
A 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() 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 D | nfnetlink_hook.c | 57 u8 hook; member 134 ret = snprintf(sym, sizeof(sym), "%ps", ops->hook); in nfnl_hook_dump_one() 195 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) in nfnl_hook_entries_head() 200 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) in nfnl_hook_entries_head() 206 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) in nfnl_hook_entries_head() 208 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head() 213 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) in nfnl_hook_entries_head() 220 if (hook >= NF_NETDEV_NUMHOOKS) in nfnl_hook_entries_head() 231 if (hook == NF_NETDEV_INGRESS) in nfnl_hook_entries_head() 235 if (hook == NF_NETDEV_EGRESS) in nfnl_hook_entries_head() [all …]
|
A D | nft_reject_netdev.c | 30 int hook) in nft_reject_netdev_send_v4_tcp_reset() argument 34 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, dev, hook); in nft_reject_netdev_send_v4_tcp_reset() 44 int hook, u8 code) in nft_reject_netdev_send_v4_unreach() argument 48 nskb = nf_reject_skb_v4_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v4_unreach() 58 int hook) in nft_reject_netdev_send_v6_tcp_reset() argument 62 nskb = nf_reject_skb_v6_tcp_reset(net, oldskb, dev, hook); in nft_reject_netdev_send_v6_tcp_reset() 73 int hook, u8 code) in nft_reject_netdev_send_v6_unreach() argument 77 nskb = nf_reject_skb_v6_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v6_unreach()
|
A D | nf_conntrack_pptp.c | 92 const struct nf_nat_pptp_hook *hook; in pptp_expectfn() local 103 hook = rcu_dereference(nf_nat_pptp_hook); in pptp_expectfn() 105 hook->expectfn(ct, exp); in pptp_expectfn() 190 const struct nf_nat_pptp_hook *hook; in exp_gre() local 220 hook = rcu_dereference(nf_nat_pptp_hook); in exp_gre() 221 if (hook && ct->status & IPS_NAT_MASK) in exp_gre() 222 hook->exp_gre(exp_orig, exp_reply); in exp_gre() 260 const struct nf_nat_pptp_hook *hook; in pptp_inbound_pkt() local 365 if (hook && ct->status & IPS_NAT_MASK) in pptp_inbound_pkt() 387 const struct nf_nat_pptp_hook *hook; in pptp_outbound_pkt() local [all …]
|
A D | nf_tables_offload.c | 223 struct nft_hook *hook; in nft_chain_offload_support() local 228 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_chain_offload_support() 229 if (hook->ops.pf != NFPROTO_NETDEV || in nft_chain_offload_support() 230 hook->ops.hooknum != NF_NETDEV_INGRESS) in nft_chain_offload_support() 233 dev = hook->ops.dev; in nft_chain_offload_support() 458 struct nft_hook *hook; in nft_flow_block_chain() local 462 dev = hook->ops.dev; in nft_flow_block_chain() 483 dev = hook->ops.dev; in nft_flow_block_chain() 624 struct nft_hook *hook, *found; in __nft_offload_get_chain() local 640 if (hook->ops.dev != dev) in __nft_offload_get_chain() [all …]
|
/linux-6.3-rc2/net/ipv4/netfilter/ |
A 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()
|
A D | nf_reject_ipv4.c | 42 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 108 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) in nf_reject_skb_v4_unreach() 140 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() argument 240 int hook) in nf_send_reset() argument 248 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_send_reset() 252 if ((hook == NF_INET_PRE_ROUTING || hook == NF_INET_INGRESS) && in nf_send_reset() 314 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument 323 if ((hook == NF_INET_PRE_ROUTING || hook == NF_INET_INGRESS) && in nf_send_unreach() [all …]
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | netlink.c | 538 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config() 609 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create() 610 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create() 613 ret = tc_qdisc_create_excl(hook); in bpf_tc_hook_create() 623 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy() 624 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy() 715 if (!hook || !opts || in bpf_tc_attach() 716 !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_attach() 789 if (!hook || in __bpf_tc_detach() 790 !OPTS_VALID(hook, bpf_tc_hook) || in __bpf_tc_detach() [all …]
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A 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);
|
/linux-6.3-rc2/security/integrity/ima/ |
A D | ima.h | 189 #define __ima_hooks(hook) \ argument 190 hook(NONE, none) \ 191 hook(FILE_CHECK, file) \ 192 hook(MMAP_CHECK, mmap) \ 194 hook(BPRM_CHECK, bprm) \ 195 hook(CREDS_CHECK, creds) \ 197 hook(MODULE_CHECK, module) \ 198 hook(FIRMWARE_CHECK, firmware) \ 201 hook(POLICY_CHECK, policy) \ 203 hook(KEY_CHECK, key) \ [all …]
|
/linux-6.3-rc2/include/net/netfilter/ipv4/ |
A D | nf_reject.h | 10 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-6.3-rc2/include/acpi/ |
A D | battery.h | 15 int (*add_battery)(struct power_supply *battery, struct acpi_battery_hook *hook); 16 int (*remove_battery)(struct power_supply *battery, struct acpi_battery_hook *hook); 20 void battery_hook_register(struct acpi_battery_hook *hook); 21 void battery_hook_unregister(struct acpi_battery_hook *hook);
|
/linux-6.3-rc2/net/bridge/netfilter/ |
A D | nft_reject_bridge.c | 48 int hook) in nft_reject_br_send_v4_tcp_reset() argument 52 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, NULL, 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, NULL, 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, NULL, 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, NULL, hook, code); in nft_reject_br_send_v6_unreach()
|
/linux-6.3-rc2/net/ipv6/netfilter/ |
A D | nf_reject_ipv6.c | 15 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() 376 static bool reject6_csum_ok(struct sk_buff *skb, int hook) in reject6_csum_ok() argument [all …]
|
/linux-6.3-rc2/include/net/netfilter/ipv6/ |
A D | nf_reject.h | 11 int hook); 14 unsigned int *otcplen, int hook); 25 int hook); 29 int hook, u8 code);
|
/linux-6.3-rc2/drivers/gpu/drm/i915/display/ |
A D | intel_quirks.c | 72 void (*hook)(struct drm_i915_private *i915); member 77 void (*hook)(struct drm_i915_private *i915); member 115 .hook = quirk_invert_brightness, 137 .hook = quirk_no_pps_backlight_power_hook, 219 q->hook(i915); in intel_init_quirks() 223 intel_dmi_quirks[i].hook(i915); in intel_init_quirks()
|
/linux-6.3-rc2/tools/testing/selftests/netfilter/ |
A D | nft_queue.sh | 105 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; 137 type filter hook input priority $prio; policy accept; 141 type filter hook forward priority $prio; policy accept; 145 type filter hook output priority $prio; policy accept; 190 type filter hook forward priority 0; policy accept; 323 type filter hook output priority 0; policy accept; 327 type filter hook postrouting priority 0; policy accept; 372 type filter hook output priority 0; policy accept; [all …]
|
/linux-6.3-rc2/drivers/acpi/ |
A D | battery.c | 710 if (!hook->remove_battery(battery->bat, hook)) in __battery_hook_unregister() 713 list_del(&hook->list); in __battery_hook_unregister() 721 __battery_hook_unregister(hook, 1); in battery_hook_unregister() 730 INIT_LIST_HEAD(&hook->list); in battery_hook_register() 731 list_add(&hook->list, &battery_hook_list); in battery_hook_register() 739 if (hook->add_battery(battery->bat, hook)) { in battery_hook_register() 747 __battery_hook_unregister(hook, 0); in battery_hook_register() 794 struct acpi_battery_hook *hook; in battery_hook_remove_battery() local 802 hook->remove_battery(battery->bat, hook); in battery_hook_remove_battery() 811 struct acpi_battery_hook *hook; in battery_hook_exit() local [all …]
|
/linux-6.3-rc2/arch/csky/kernel/ |
A D | ftrace.c | 70 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()
|