Searched refs:hook (Results 1 - 25 of 148) sorted by relevance

123456

/linux-master/include/acpi/
H A Dbattery.h15 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-master/fs/xfs/
H A Dxfs_hooks.c23 /* Make it so a function gets called whenever we hit a certain hook point. */
27 struct xfs_hook *hook)
29 ASSERT(hook->nb.notifier_call != NULL);
32 return blocking_notifier_chain_register(&chain->head, &hook->nb);
35 /* Remove a previously installed hook. */
39 struct xfs_hook *hook)
41 blocking_notifier_chain_unregister(&chain->head, &hook->nb);
44 /* Call a hook. Returns the NOTIFY_* value returned by the last hook. */
25 xfs_hooks_add( struct xfs_hooks *chain, struct xfs_hook *hook) argument
37 xfs_hooks_del( struct xfs_hooks *chain, struct xfs_hook *hook) argument
H A Dxfs_hooks.h37 typedef int (*xfs_hook_fn_t)(struct xfs_hook *hook, unsigned long action,
41 int xfs_hooks_add(struct xfs_hooks *chain, struct xfs_hook *hook);
42 void xfs_hooks_del(struct xfs_hooks *chain, struct xfs_hook *hook);
46 static inline void xfs_hook_setup(struct xfs_hook *hook, notifier_fn_t fn) argument
48 hook->nb.notifier_call = fn;
49 hook->nb.priority = 0;
/linux-master/include/net/netfilter/ipv4/
H 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-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_bpf.c26 static int test_tc_bpf_basic(const struct bpf_tc_hook *hook, int fd) argument
37 ret = bpf_tc_attach(hook, &opts);
48 ret = bpf_tc_attach(hook, &opts);
53 ret = bpf_tc_query(hook, &opts);
64 ret = bpf_tc_detach(hook, &opts);
69 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd) argument
77 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook = NULL"))
80 /* hook ifindex = 0 */
82 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex == 0"))
86 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifinde
[all...]
H A Dxfrm_info.c72 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) argument
80 ret = bpf_tc_hook_create(hook);
81 if (!ASSERT_OK(ret, "create tc hook"))
85 hook->attach_point = BPF_TC_INGRESS;
86 ret = bpf_tc_attach(hook, &opts1);
88 bpf_tc_hook_destroy(hook);
94 hook->attach_point = BPF_TC_EGRESS;
95 ret = bpf_tc_attach(hook, &opts2);
97 bpf_tc_hook_destroy(hook);
300 /* load and attach bpf progs to ipsec dev tc hook poin
[all...]
/linux-master/include/net/netfilter/ipv6/
H A Dnf_reject.h11 int hook);
14 unsigned int *otcplen, int hook);
25 int hook);
29 int hook, u8 code);
/linux-master/arch/arm64/include/asm/
H A Ddebug-monitors.h70 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-master/net/netfilter/
H A Dnf_bpf_link.c37 const struct nf_defrag_hook *hook; local
42 hook = rcu_dereference(*ptr_global_hook);
43 if (!hook) {
50 hook = rcu_dereference(*ptr_global_hook);
53 if (hook && try_module_get(hook->owner)) {
55 hook = rcu_pointer_handoff(hook);
57 WARN_ONCE(!hook, "%s has bad registration", mod);
58 hook
76 const struct nf_defrag_hook __maybe_unused *hook; local
104 const struct nf_defrag_hook *hook = link->defrag_hook; local
[all...]
H A Dutils.c10 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, argument
18 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN)
43 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, argument
53 return nf_ip_checksum(skb, hook, dataoff, protocol);
64 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, argument
72 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN)
97 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, argument
108 return nf_ip6_checksum(skb, hook, dataof
123 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol, unsigned short family) argument
142 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol, unsigned short family) argument
[all...]
H A Dnft_reject_netdev.c30 int hook)
34 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, dev, hook);
44 int hook, u8 code)
48 nskb = nf_reject_skb_v4_unreach(net, oldskb, dev, hook, code);
58 int hook)
62 nskb = nf_reject_skb_v6_tcp_reset(net, oldskb, dev, hook);
73 int hook, u8 code)
77 nskb = nf_reject_skb_v6_unreach(net, oldskb, dev, hook, code);
27 nft_reject_netdev_send_v4_tcp_reset(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook) argument
41 nft_reject_netdev_send_v4_unreach(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook, u8 code) argument
55 nft_reject_netdev_send_v6_tcp_reset(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook) argument
70 nft_reject_netdev_send_v6_unreach(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook, u8 code) argument
H A Dnfnetlink_hook.c58 u8 hook; member in struct:nfnl_dump_hook_data
176 ret = snprintf(sym, sizeof(sym), "%ps", ops->hook);
241 nfnl_hook_entries_head(u8 pf, unsigned int hook, struct net *net, const char *dev) argument
250 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4))
252 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]);
255 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6))
257 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]);
261 if (hook >= ARRAY_SIZE(net->nf.hooks_arp))
263 hook_head = rcu_dereference(net->nf.hooks_arp[hook]);
268 if (hook >
[all...]
/linux-master/net/ipv4/netfilter/
H A Dipt_REJECT.c34 int hook = xt_hooknum(par); local
38 nf_send_unreach(skb, ICMP_NET_UNREACH, hook);
41 nf_send_unreach(skb, ICMP_HOST_UNREACH, hook);
44 nf_send_unreach(skb, ICMP_PROT_UNREACH, hook);
47 nf_send_unreach(skb, ICMP_PORT_UNREACH, hook);
50 nf_send_unreach(skb, ICMP_NET_ANO, hook);
53 nf_send_unreach(skb, ICMP_HOST_ANO, hook);
56 nf_send_unreach(skb, ICMP_PKT_FILTERED, hook);
59 nf_send_reset(xt_net(par), par->state->sk, skb, hook); local
H A Dnf_reject_ipv4.c42 int hook)
52 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook);
77 int hook, u8 code)
108 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto))
140 struct tcphdr *_oth, int hook)
161 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP))
240 int hook)
247 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook);
251 if ((hook == NF_INET_PRE_ROUTING || hook
39 nf_reject_skb_v4_tcp_reset(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook) argument
74 nf_reject_skb_v4_unreach(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook, u8 code) argument
139 nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, struct tcphdr *_oth, int hook) argument
239 nf_send_reset(struct net *net, struct sock *sk, struct sk_buff *oldskb, int hook) argument
317 nf_send_unreach(struct sk_buff *skb_in, int code, int hook) argument
[all...]
/linux-master/arch/arm64/kernel/
H A Ddebug-monitors.c179 void register_user_step_hook(struct step_hook *hook) argument
181 register_debug_hook(&hook->node, &user_step_hook);
184 void unregister_user_step_hook(struct step_hook *hook) argument
186 unregister_debug_hook(&hook->node);
189 void register_kernel_step_hook(struct step_hook *hook) argument
191 register_debug_hook(&hook->node, &kernel_step_hook);
194 void unregister_kernel_step_hook(struct step_hook *hook) argument
196 unregister_debug_hook(&hook->node);
207 struct step_hook *hook; local
217 list_for_each_entry_rcu(hook, lis
282 register_user_break_hook(struct break_hook *hook) argument
287 unregister_user_break_hook(struct break_hook *hook) argument
292 register_kernel_break_hook(struct break_hook *hook) argument
297 unregister_kernel_break_hook(struct break_hook *hook) argument
304 struct break_hook *hook; local
[all...]
/linux-master/include/linux/
H A Dnetfilter.h79 u8 hook; member in struct:nf_hook_state
99 nf_hookfn *hook; member in struct:nf_hook_ops
110 nf_hookfn *hook; member in struct:nf_hook_entry
124 /* trailer: pointers to original orig_ops of each hook,
129 * needed in slow path (hook register/unregister):
133 * only needed when a hook is deleted, not during
154 return entry->hook(entry->priv, skb, state);
158 unsigned int hook,
166 p->hook = hook;
157 nf_hook_state_init(struct nf_hook_state *p, unsigned int hook, u_int8_t pf, struct net_device *indev, struct net_device *outdev, struct sock *sk, struct net *net, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
223 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
294 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *in, struct net_device *out, int (*okfn)(struct net *, struct sock *, struct sk_buff *), bool cond) argument
308 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *in, struct net_device *out, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
319 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct list_head *head, struct net_device *in, struct net_device *out, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
409 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *in, struct net_device *out, int (*okfn)(struct net *, struct sock *, struct sk_buff *), bool cond) argument
418 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *in, struct net_device *out, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
426 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct list_head *head, struct net_device *in, struct net_device *out, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
433 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
[all...]
H A Dnetfilter_ipv4.h24 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
29 static inline __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, argument
/linux-master/tools/lib/bpf/
H A Dnetlink.c542 static int attach_point_to_config(struct bpf_tc_hook *hook, argument
545 switch (OPTS_GET(hook, attach_point, 0)) {
549 if (OPTS_GET(hook, parent, 0))
582 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) argument
588 ret = attach_point_to_config(hook, &config);
597 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0);
606 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) argument
608 return tc_qdisc_modify(hook, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_EXCL);
611 static int tc_qdisc_delete(struct bpf_tc_hook *hook) argument
613 return tc_qdisc_modify(hook, RTM_DELQDIS
616 bpf_tc_hook_create(struct bpf_tc_hook *hook) argument
632 bpf_tc_hook_destroy(struct bpf_tc_hook *hook) argument
718 bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) argument
792 __bpf_tc_detach(const struct bpf_tc_hook *hook, const struct bpf_tc_opts *opts, const bool flush) argument
853 bpf_tc_detach(const struct bpf_tc_hook *hook, const struct bpf_tc_opts *opts) argument
865 bpf_tc_query(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) argument
[all...]
/linux-master/security/integrity/ima/
H A Dima.h49 /* bitset of digests algorithms allowed in the setxattr hook */
296 #define __ima_hooks(hook) \
297 hook(NONE, none) \
298 hook(FILE_CHECK, file) \
299 hook(MMAP_CHECK, mmap) \
300 hook(MMAP_CHECK_REQPROT, mmap_reqprot) \
301 hook(BPRM_CHECK, bprm) \
302 hook(CREDS_CHECK, creds) \
303 hook(POST_SETATTR, post_setattr) \
304 hook(MODULE_CHEC
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_quirks.c72 void (*hook)(struct drm_i915_private *i915); member in struct:intel_quirk
77 void (*hook)(struct drm_i915_private *i915); member in struct:intel_dmi_quirk
115 .hook = quirk_invert_brightness,
137 .hook = quirk_no_pps_backlight_power_hook,
219 q->hook(i915);
223 intel_dmi_quirks[i].hook(i915);
/linux-master/net/bridge/netfilter/
H A Debtable_filter.c55 .hook = ebt_do_table,
61 .hook = ebt_do_table,
67 .hook = ebt_do_table,
H A Debtable_nat.c55 .hook = ebt_do_table,
61 .hook = ebt_do_table,
67 .hook = ebt_do_table,
H A Dnft_reject_bridge.c48 int hook)
52 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, NULL, hook);
64 int hook, u8 code)
68 nskb = nf_reject_skb_v4_unreach(net, oldskb, NULL, hook, code);
80 int hook)
84 nskb = nf_reject_skb_v6_tcp_reset(net, oldskb, NULL, hook);
97 int hook, u8 code)
101 nskb = nf_reject_skb_v6_unreach(net, oldskb, NULL, hook, code);
45 nft_reject_br_send_v4_tcp_reset(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook) argument
61 nft_reject_br_send_v4_unreach(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook, u8 code) argument
77 nft_reject_br_send_v6_tcp_reset(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook) argument
94 nft_reject_br_send_v6_unreach(struct net *net, struct sk_buff *oldskb, const struct net_device *dev, int hook, u8 code) argument
/linux-master/security/smack/
H A Dsmack_netfilter.c40 .hook = smack_ip_output,
47 .hook = smack_ip_output,
/linux-master/arch/arm/include/asm/
H A Dtraps.h20 void register_undef_hook(struct undef_hook *hook);
21 void unregister_undef_hook(struct undef_hook *hook);

Completed in 202 milliseconds

123456