/Linux-v5.4/arch/arm64/kernel/ |
D | debug-monitors.c | 176 void register_user_step_hook(struct step_hook *hook) in register_user_step_hook() argument 178 register_debug_hook(&hook->node, &user_step_hook); in register_user_step_hook() 181 void unregister_user_step_hook(struct step_hook *hook) in unregister_user_step_hook() argument 183 unregister_debug_hook(&hook->node); in unregister_user_step_hook() 186 void register_kernel_step_hook(struct step_hook *hook) in register_kernel_step_hook() argument 188 register_debug_hook(&hook->node, &kernel_step_hook); in register_kernel_step_hook() 191 void unregister_kernel_step_hook(struct step_hook *hook) in unregister_kernel_step_hook() argument 193 unregister_debug_hook(&hook->node); in unregister_kernel_step_hook() 204 struct step_hook *hook; in call_step_hook() local 214 list_for_each_entry_rcu(hook, list, node) { in call_step_hook() [all …]
|
D | traps.c | 286 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument 291 list_add(&hook->node, &undef_hook); in register_undef_hook() 295 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument 300 list_del(&hook->node); in unregister_undef_hook() 306 struct undef_hook *hook; in call_undef_hook() local 340 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook() 341 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook() 342 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook() 343 fn = hook->fn; in call_undef_hook() 672 const struct sys64_hook *hook, *hook_base; in do_cp15instr() local [all …]
|
D | armv8_deprecated.c | 65 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-v5.4/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 …]
|
D | nf_queue.c | 134 if (entry->state.hook == NF_INET_LOCAL_OUT) { in nf_ip_saveroute() 149 if (entry->state.hook == NF_INET_LOCAL_OUT) { in nf_ip6_saveroute() 192 if (!skb_dst_force(skb) && state->hook != NF_INET_PRE_ROUTING) { in __nf_queue() 252 const struct nf_hook_entry *hook; in nf_iterate() local 256 hook = &hooks->hooks[i]; in nf_iterate() 258 verdict = nf_hook_entry_hookfn(hook, skb, state); in nf_iterate() 305 hooks = nf_hook_entries_head(net, pf, entry->state.hook); in nf_reinject()
|
/Linux-v5.4/include/linux/ |
D | netfilter.h | 67 unsigned int hook; member 81 nf_hookfn *hook; member 91 nf_hookfn *hook; member 135 return entry->hook(entry->priv, skb, state); in nf_hook_entry_hookfn() 139 unsigned int hook, in nf_hook_state_init() argument 147 p->hook = hook; in nf_hook_state_init() 209 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument 219 __builtin_constant_p(hook) && in nf_hook() 220 !static_key_false(&nf_hooks_needed[pf][hook])) in nf_hook() 227 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook() [all …]
|
D | pci.h | 1884 void (*hook)(struct pci_dev *dev); member 1901 class_shift, hook) \ argument 1902 __ADDRESSABLE(hook) \ 1907 ".long " #hook " - . \n" \ 1910 class_shift, hook) \ argument 1912 class_shift, hook) 1916 class_shift, hook) \ argument 1919 = { vendor, device, class, class_shift, hook }; 1923 class_shift, hook) \ argument 1925 hook, vendor, device, class, class_shift, hook) [all …]
|
/Linux-v5.4/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), skb, hook); in reject_tg()
|
D | nf_reject_ipv4.c | 16 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() 100 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset() argument 108 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_send_reset() 170 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument 183 if (nf_ip_checksum(skb_in, hook, ip_hdrlen(skb_in), proto) == 0) in nf_send_unreach()
|
D | iptable_nat.c | 38 .hook = iptable_nat_do_chain, 44 .hook = iptable_nat_do_chain, 50 .hook = iptable_nat_do_chain, 56 .hook = iptable_nat_do_chain,
|
/Linux-v5.4/arch/arm64/include/asm/ |
D | debug-monitors.h | 81 void register_user_step_hook(struct step_hook *hook); 82 void unregister_user_step_hook(struct step_hook *hook); 84 void register_kernel_step_hook(struct step_hook *hook); 85 void unregister_kernel_step_hook(struct step_hook *hook); 94 void register_user_break_hook(struct break_hook *hook); 95 void unregister_user_break_hook(struct break_hook *hook); 97 void register_kernel_break_hook(struct break_hook *hook); 98 void unregister_kernel_break_hook(struct break_hook *hook);
|
/Linux-v5.4/security/integrity/ima/ |
D | ima.h | 183 #define __ima_hooks(hook) \ argument 184 hook(NONE) \ 185 hook(FILE_CHECK) \ 186 hook(MMAP_CHECK) \ 187 hook(BPRM_CHECK) \ 188 hook(CREDS_CHECK) \ 189 hook(POST_SETATTR) \ 190 hook(MODULE_CHECK) \ 191 hook(FIRMWARE_CHECK) \ 192 hook(KEXEC_KERNEL_CHECK) \ [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/display/ |
D | intel_quirks.c | 60 void (*hook)(struct drm_i915_private *i915); member 65 void (*hook)(struct drm_i915_private *i915); member 87 .hook = quirk_invert_brightness, 164 q->hook(i915); in intel_init_quirks() 168 intel_dmi_quirks[i].hook(i915); in intel_init_quirks()
|
/Linux-v5.4/arch/csky/kernel/ |
D | ftrace.c | 69 static int ftrace_check_current_nop(unsigned long hook) in ftrace_check_current_nop() argument 72 unsigned long hook_pos = hook - 2; in ftrace_check_current_nop() 89 static int ftrace_modify_code(unsigned long hook, unsigned long target, in ftrace_modify_code() argument 94 unsigned long hook_pos = hook - 2; in ftrace_modify_code() 97 make_jbsr(target, hook, call, nolr); in ftrace_modify_code()
|
/Linux-v5.4/include/net/netfilter/ipv4/ |
D | nf_reject.h | 10 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);
|
/Linux-v5.4/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 66 int hook) in nft_reject_br_send_v4_tcp_reset() argument 76 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nft_reject_br_send_v4_tcp_reset() 100 int hook, u8 code) in nft_reject_br_send_v4_unreach() argument 129 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) in nft_reject_br_send_v4_unreach() 181 int hook) in nft_reject_br_send_v6_tcp_reset() argument 192 oth = nf_reject_ip6_tcphdr_get(oldskb, &_oth, &otcplen, hook); in nft_reject_br_send_v6_tcp_reset() 212 static bool reject6_br_csum_ok(struct sk_buff *skb, int hook) in reject6_br_csum_ok() argument 234 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_br_csum_ok() 240 int hook, u8 code) in nft_reject_br_send_v6_unreach() argument 258 if (!reject6_br_csum_ok(oldskb, hook)) in nft_reject_br_send_v6_unreach()
|
D | ebtable_filter.c | 77 .hook = ebt_in_hook, 83 .hook = ebt_in_hook, 89 .hook = ebt_out_hook,
|
D | ebtable_nat.c | 77 .hook = ebt_nat_out, 83 .hook = ebt_nat_out, 89 .hook = ebt_nat_in,
|
/Linux-v5.4/net/ipv6/netfilter/ |
D | ip6table_nat.c | 40 .hook = ip6table_nat_do_chain, 46 .hook = ip6table_nat_do_chain, 52 .hook = ip6table_nat_do_chain, 58 .hook = ip6table_nat_do_chain,
|
D | nf_reject_ipv6.c | 17 unsigned int *otcplen, int hook) in nf_reject_ip6_tcphdr_get() argument 54 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get() 129 void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset6() argument 147 otcph = nf_reject_ip6_tcphdr_get(oldskb, &_otcph, &otcplen, hook); in nf_send_reset6() 217 static bool reject6_csum_ok(struct sk_buff *skb, int hook) in reject6_csum_ok() argument 236 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_csum_ok()
|
/Linux-v5.4/sound/core/ |
D | vmaster.c | 36 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() 350 if (master->hook && !first_init) in master_put() 351 master->hook(master->hook_private_data, master->val); in master_put() 447 void (*hook)(void *private_data, int), in snd_ctl_add_vmaster_hook() 451 master->hook = hook; in snd_ctl_add_vmaster_hook() 484 if (master->hook && !first_init) in snd_ctl_sync_vmaster() 485 master->hook(master->hook_private_data, master->val); in snd_ctl_sync_vmaster()
|
/Linux-v5.4/arch/arm/kernel/ |
D | traps.c | 401 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument 406 list_add(&hook->node, &undef_hook); in register_undef_hook() 410 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument 415 list_del(&hook->node); in unregister_undef_hook() 422 struct undef_hook *hook; in call_undef_hook() local 427 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook() 428 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook() 429 (regs->ARM_cpsr & hook->cpsr_mask) == hook->cpsr_val) in call_undef_hook() 430 fn = hook->fn; in call_undef_hook()
|
/Linux-v5.4/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-v5.4/Documentation/security/ |
D | lsm.rst | 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-v5.4/drivers/acpi/ |
D | battery.c | 673 static void __battery_hook_unregister(struct acpi_battery_hook *hook, int lock) in __battery_hook_unregister() argument 683 hook->remove_battery(battery->bat); in __battery_hook_unregister() 685 list_del(&hook->list); in __battery_hook_unregister() 688 pr_info("extension unregistered: %s\n", hook->name); in __battery_hook_unregister() 691 void battery_hook_unregister(struct acpi_battery_hook *hook) in battery_hook_unregister() argument 693 __battery_hook_unregister(hook, 1); in battery_hook_unregister() 697 void battery_hook_register(struct acpi_battery_hook *hook) in battery_hook_register() argument 702 INIT_LIST_HEAD(&hook->list); in battery_hook_register() 703 list_add(&hook->list, &battery_hook_list); in battery_hook_register() 711 if (hook->add_battery(battery->bat)) { in battery_hook_register() [all …]
|