/Linux-v4.19/include/linux/ |
D | netfilter.h | 52 unsigned int hook; member 66 nf_hookfn *hook; member 76 nf_hookfn *hook; member 119 return entry->hook(entry->priv, skb, state); in nf_hook_entry_hookfn() 123 unsigned int hook, in nf_hook_state_init() argument 131 p->hook = hook; in nf_hook_state_init() 193 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument 203 __builtin_constant_p(hook) && in nf_hook() 204 !static_key_false(&nf_hooks_needed[pf][hook])) in nf_hook() 211 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook() [all …]
|
D | pci.h | 1818 void (*hook)(struct pci_dev *dev); member 1835 class_shift, hook) \ argument 1836 __ADDRESSABLE(hook) \ 1841 ".long " #hook " - . \n" \ 1844 class_shift, hook) \ argument 1846 class_shift, hook) 1850 class_shift, hook) \ argument 1853 = { vendor, device, class, class_shift, hook }; 1857 class_shift, hook) \ argument 1859 hook, vendor, device, class, class_shift, hook) [all …]
|
/Linux-v4.19/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() 42 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum_partial() argument 52 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial() 63 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum() argument 71 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip6_checksum() 96 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum_partial() argument 107 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial() 122 __sum16 nf_checksum(struct sk_buff *skb, unsigned int hook, in nf_checksum() argument 130 csum = nf_ip_checksum(skb, hook, dataoff, protocol); in nf_checksum() [all …]
|
D | nf_conntrack_proto.c | 458 return nf_conntrack_in(state->net, PF_INET, state->hook, skb); in ipv4_conntrack_in() 480 return nf_conntrack_in(state->net, PF_INET, state->hook, skb); in ipv4_conntrack_local() 488 .hook = ipv4_conntrack_in, 494 .hook = ipv4_conntrack_local, 500 .hook = ipv4_helper, 506 .hook = ipv4_confirm, 512 .hook = ipv4_helper, 518 .hook = ipv4_confirm, 693 return nf_conntrack_in(state->net, PF_INET6, state->hook, skb); in ipv6_conntrack_in() 700 return nf_conntrack_in(state->net, PF_INET6, state->hook, skb); in ipv6_conntrack_local() [all …]
|
D | nf_queue.c | 118 if (entry->state.hook == NF_INET_LOCAL_OUT) { in nf_ip_saveroute() 133 if (entry->state.hook == NF_INET_LOCAL_OUT) { in nf_ip6_saveroute() 233 const struct nf_hook_entry *hook; in nf_iterate() local 237 hook = &hooks->hooks[i]; in nf_iterate() 239 verdict = nf_hook_entry_hookfn(hook, skb, state); in nf_iterate() 285 hooks = nf_hook_entries_head(net, pf, entry->state.hook); in nf_reinject()
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | ipt_REJECT.c | 37 int hook = xt_hooknum(par); in reject_tg() local 41 nf_send_unreach(skb, ICMP_NET_UNREACH, hook); in reject_tg() 44 nf_send_unreach(skb, ICMP_HOST_UNREACH, hook); in reject_tg() 47 nf_send_unreach(skb, ICMP_PROT_UNREACH, hook); in reject_tg() 50 nf_send_unreach(skb, ICMP_PORT_UNREACH, hook); in reject_tg() 53 nf_send_unreach(skb, ICMP_NET_ANO, hook); in reject_tg() 56 nf_send_unreach(skb, ICMP_HOST_ANO, hook); in reject_tg() 59 nf_send_unreach(skb, ICMP_PKT_FILTERED, hook); in reject_tg() 62 nf_send_reset(xt_net(par), skb, hook); in reject_tg()
|
D | nf_reject_ipv4.c | 19 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() argument 40 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get() 103 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset() argument 110 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_send_reset() 171 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument 189 if (nf_ip_checksum(skb_in, hook, ip_hdrlen(skb_in), proto) == 0) in nf_send_unreach()
|
D | iptable_nat.c | 43 .hook = iptable_nat_do_chain, 49 .hook = iptable_nat_do_chain, 55 .hook = iptable_nat_do_chain, 61 .hook = iptable_nat_do_chain,
|
/Linux-v4.19/arch/arm64/kernel/ |
D | debug-monitors.c | 170 void register_step_hook(struct step_hook *hook) in register_step_hook() argument 173 list_add_rcu(&hook->node, &step_hook); in register_step_hook() 177 void unregister_step_hook(struct step_hook *hook) in unregister_step_hook() argument 180 list_del_rcu(&hook->node); in unregister_step_hook() 193 struct step_hook *hook; in call_step_hook() local 198 list_for_each_entry_rcu(hook, &step_hook, node) { in call_step_hook() 199 retval = hook->fn(regs, esr); in call_step_hook() 280 void register_break_hook(struct break_hook *hook) in register_break_hook() argument 283 list_add_rcu(&hook->node, &break_hook); in register_break_hook() 287 void unregister_break_hook(struct break_hook *hook) in unregister_break_hook() argument [all …]
|
D | traps.c | 287 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument 292 list_add(&hook->node, &undef_hook); in register_undef_hook() 296 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument 301 list_del(&hook->node); in unregister_undef_hook() 307 struct undef_hook *hook; in call_undef_hook() local 339 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook() 340 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook() 341 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook() 342 fn = hook->fn; in call_undef_hook() 534 struct sys64_hook *hook; in do_sysinstr() local [all …]
|
D | armv8_deprecated.c | 68 struct undef_hook *hook; in register_emulation_hooks() local 72 for (hook = ops->hooks; hook->instr_mask; hook++) in register_emulation_hooks() 73 register_undef_hook(hook); in register_emulation_hooks() 80 struct undef_hook *hook; in remove_emulation_hooks() local 84 for (hook = ops->hooks; hook->instr_mask; hook++) in remove_emulation_hooks() 85 unregister_undef_hook(hook); in remove_emulation_hooks()
|
/Linux-v4.19/security/integrity/ima/ |
D | ima.h | 174 #define __ima_hooks(hook) \ argument 175 hook(NONE) \ 176 hook(FILE_CHECK) \ 177 hook(MMAP_CHECK) \ 178 hook(BPRM_CHECK) \ 179 hook(CREDS_CHECK) \ 180 hook(POST_SETATTR) \ 181 hook(MODULE_CHECK) \ 182 hook(FIRMWARE_CHECK) \ 183 hook(KEXEC_KERNEL_CHECK) \ [all …]
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | debug-monitors.h | 97 void register_step_hook(struct step_hook *hook); 98 void unregister_step_hook(struct step_hook *hook); 107 void register_break_hook(struct break_hook *hook); 108 void unregister_break_hook(struct break_hook *hook);
|
/Linux-v4.19/include/net/netfilter/ipv4/ |
D | nf_reject.h | 9 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook); 10 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook); 13 struct tcphdr *_oth, int hook);
|
/Linux-v4.19/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 69 int hook) in nft_reject_br_send_v4_tcp_reset() argument 79 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nft_reject_br_send_v4_tcp_reset() 103 int hook, u8 code) in nft_reject_br_send_v4_unreach() argument 135 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) in nft_reject_br_send_v4_unreach() 187 int hook) in nft_reject_br_send_v6_tcp_reset() argument 198 oth = nf_reject_ip6_tcphdr_get(oldskb, &_oth, &otcplen, hook); in nft_reject_br_send_v6_tcp_reset() 218 static bool reject6_br_csum_ok(struct sk_buff *skb, int hook) in reject6_br_csum_ok() argument 236 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_br_csum_ok() 242 int hook, u8 code) in nft_reject_br_send_v6_unreach() argument 260 if (!reject6_br_csum_ok(oldskb, hook)) in nft_reject_br_send_v6_unreach()
|
D | ebtable_filter.c | 76 .hook = ebt_in_hook, 82 .hook = ebt_in_hook, 88 .hook = ebt_out_hook,
|
D | ebtable_nat.c | 76 .hook = ebt_nat_out, 82 .hook = ebt_nat_out, 88 .hook = ebt_nat_in,
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | ip6table_nat.c | 45 .hook = ip6table_nat_do_chain, 51 .hook = ip6table_nat_do_chain, 57 .hook = ip6table_nat_do_chain, 63 .hook = ip6table_nat_do_chain,
|
D | nf_reject_ipv6.c | 20 unsigned int *otcplen, int hook) in nf_reject_ip6_tcphdr_get() argument 57 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get() 132 void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset6() argument 149 otcph = nf_reject_ip6_tcphdr_get(oldskb, &_otcph, &otcplen, hook); in nf_send_reset6() 216 static bool reject6_csum_ok(struct sk_buff *skb, int hook) in reject6_csum_ok() argument 232 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_csum_ok()
|
/Linux-v4.19/sound/core/ |
D | vmaster.c | 40 void (*hook)(void *private_data, int); member 134 if (master->hook) in master_init() 135 master->hook(master->hook_private_data, master->val); in master_init() 354 if (master->hook && !first_init) in master_put() 355 master->hook(master->hook_private_data, master->val); in master_put() 451 void (*hook)(void *private_data, int), in snd_ctl_add_vmaster_hook() 455 master->hook = hook; in snd_ctl_add_vmaster_hook() 488 if (master->hook && !first_init) in snd_ctl_sync_vmaster() 489 master->hook(master->hook_private_data, master->val); in snd_ctl_sync_vmaster()
|
/Linux-v4.19/arch/arm/kernel/ |
D | traps.c | 403 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument 408 list_add(&hook->node, &undef_hook); in register_undef_hook() 412 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument 417 list_del(&hook->node); in unregister_undef_hook() 424 struct undef_hook *hook; in call_undef_hook() local 429 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook() 430 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook() 431 (regs->ARM_cpsr & hook->cpsr_mask) == hook->cpsr_val) in call_undef_hook() 432 fn = hook->fn; in call_undef_hook()
|
/Linux-v4.19/include/acpi/ |
D | battery.h | 18 void battery_hook_register(struct acpi_battery_hook *hook); 19 void battery_hook_unregister(struct acpi_battery_hook *hook);
|
/Linux-v4.19/Documentation/ |
D | lsm.txt | 62 inserts calls to hook functions at critical points in the kernel code to 87 Each LSM hook is a function pointer in a global table, security_ops. 90 ``include/linux/security.h``. Detailed documentation for each hook is 94 hook function pointers for system operations. This structure is likely 95 to be flattened in the future for performance. The placement of the hook 97 per-hook documentation in the header file. The hook calls can also be 105 processes (e.g. kill), since each process might have its own hook for 116 The global security_ops table is initialized to a set of hook functions 120 security_ops to refer to its own hook functions, and an 124 decision for each hook. [all …]
|
/Linux-v4.19/drivers/acpi/ |
D | battery.c | 686 static void __battery_hook_unregister(struct acpi_battery_hook *hook, int lock) in __battery_hook_unregister() argument 696 hook->remove_battery(battery->bat); in __battery_hook_unregister() 698 list_del(&hook->list); in __battery_hook_unregister() 701 pr_info("extension unregistered: %s\n", hook->name); in __battery_hook_unregister() 704 void battery_hook_unregister(struct acpi_battery_hook *hook) in battery_hook_unregister() argument 706 __battery_hook_unregister(hook, 1); in battery_hook_unregister() 710 void battery_hook_register(struct acpi_battery_hook *hook) in battery_hook_register() argument 715 INIT_LIST_HEAD(&hook->list); in battery_hook_register() 716 list_add(&hook->list, &battery_hook_list); in battery_hook_register() 724 if (hook->add_battery(battery->bat)) { in battery_hook_register() [all …]
|
/Linux-v4.19/net/sched/ |
D | em_ipt.c | 27 u32 hook; member 55 mtpar.hook_mask = 1 << im->hook; in check_match() 146 im->hook = nla_get_u32(tb[TCA_EM_IPT_HOOK]); in em_ipt_change() 197 nf_hook_state_init(&state, im->hook, im->match->family, in em_ipt_match() 216 if (nla_put_u32(skb, TCA_EM_IPT_HOOK, im->hook) < 0) in em_ipt_dump()
|