Home
last modified time | relevance | path

Searched full:helper (Results 1 – 25 of 1675) sorted by relevance

12345678910>>...67

/linux/net/netfilter/
H A Dnfnetlink_cthelper.c35 struct nf_conntrack_helper *helper; member
44 struct nf_conntrack_helper *helper; in nfnl_userspace_cthelper() local
53 helper = rcu_dereference(help->helper); in nfnl_userspace_cthelper()
54 if (helper == NULL) in nfnl_userspace_cthelper()
57 helper_flags = READ_ONCE(helper->flags); in nfnl_userspace_cthelper()
59 /* This is a user-space helper not yet configured, skip. */ in nfnl_userspace_cthelper()
65 /* If the user-space helper is not available, don't block traffic. */ in nfnl_userspace_cthelper()
66 return NF_QUEUE_NR(helper->queue_num) | NF_VERDICT_FLAG_QUEUE_BYPASS; in nfnl_userspace_cthelper()
102 const struct nf_conntrack_helper *helper; in nfnl_cthelper_from_nlattr() local
110 helper = rcu_dereference(help->helper); in nfnl_cthelper_from_nlattr()
[all …]
H A Dnf_conntrack_helper.c2 /* Helper handling for netfilter. */
89 if (request_module("nfct-helper-%s", name) == 0) { in nf_conntrack_helper_try_module_get()
110 void nf_conntrack_helper_put(struct nf_conntrack_helper *helper) in nf_conntrack_helper_put() argument
112 module_put(helper->me); in nf_conntrack_helper_put()
113 if (refcount_dec_and_test(&helper->ct_refcnt)) in nf_conntrack_helper_put()
114 kfree_rcu(helper, rcu); in nf_conntrack_helper_put()
170 void nf_nat_helper_put(struct nf_conntrack_helper *helper) in nf_nat_helper_put() argument
174 nat = nf_conntrack_nat_helper_find(helper->nat_mod_name); in nf_nat_helper_put()
199 struct nf_conntrack_helper *helper = NULL; in __nf_ct_try_assign_helper() local
202 /* We already got a helper explicitly attached (e.g. nft_ct) */ in __nf_ct_try_assign_helper()
[all …]
H A Dnf_conntrack_ovs.c18 const struct nf_conntrack_helper *helper; in nf_ct_helper() local
30 helper = rcu_dereference(help->helper); in nf_ct_helper()
31 if (!helper) in nf_ct_helper()
34 if (helper->nfproto != NFPROTO_UNSPEC && in nf_ct_helper()
35 helper->nfproto != proto) in nf_ct_helper()
59 WARN_ONCE(1, "helper invoked on non-IP family!"); in nf_ct_helper()
63 if (helper->l4proto != proto) in nf_ct_helper()
66 helper_cb = rcu_dereference(helper->help); in nf_ct_helper()
74 /* Adjust seqs after helper. This is needed due to some helpers (e.g., in nf_ct_helper()
88 struct nf_conntrack_helper *helper; in nf_ct_add_helper() local
[all …]
H A Dxt_helper.c29 const struct nf_conntrack_helper *helper; in helper_mt() local
42 helper = rcu_dereference(master_help->helper); in helper_mt()
43 if (!helper) in helper_mt()
49 ret ^= !strncmp(helper->name, info->name, in helper_mt()
50 strlen(helper->name)); in helper_mt()
75 .name = "helper",
H A Dnf_conntrack_netbios_ns.c3 * NetBIOS name service broadcast connection tracking helper
8 * This helper tracks locally originating NetBIOS name service
26 MODULE_DESCRIPTION("NetBIOS name service broadcast connection tracking helper");
46 static struct nf_conntrack_helper helper __read_mostly;
55 nf_ct_helper_init(&helper, AF_INET, IPPROTO_UDP, HELPER_NAME, in nf_conntrack_netbios_ns_init()
58 return nf_conntrack_helper_register(&helper, &helper_ptr); in nf_conntrack_netbios_ns_init()
H A Dnf_conntrack_broadcast.c3 * broadcast connection tracking helper
24 const struct nf_conntrack_helper *helper; in nf_conntrack_broadcast_help() local
70 helper = rcu_dereference(help->helper); in nf_conntrack_broadcast_help()
78 rcu_assign_pointer(exp->helper, helper); in nf_conntrack_broadcast_help()
98 MODULE_DESCRIPTION("Broadcast connection tracking helper");
H A Dnf_conntrack_expect.c64 /* nf_conntrack_expect helper functions */
321 * master's helper is safe, because the packet holds a reference on
330 struct nf_conntrack_helper *helper = NULL; in nf_ct_expect_init() local
352 helper = rcu_dereference(help->helper); in nf_ct_expect_init()
354 rcu_assign_pointer(exp->helper, helper); in nf_ct_expect_init()
423 struct nf_conntrack_helper *helper; in nf_ct_expect_insert() local
429 helper = rcu_dereference_protected(master_help->helper, in nf_ct_expect_insert()
472 struct nf_conntrack_helper *helper; __nf_ct_expect_check() local
708 struct nf_conntrack_helper *helper; exp_seq_show() local
[all...]
H A Dnf_conntrack_snmp.c3 * SNMP service broadcast connection tracking helper
18 MODULE_DESCRIPTION("SNMP service broadcast connection tracking helper");
48 static struct nf_conntrack_helper helper __read_mostly;
55 nf_ct_helper_init(&helper, AF_INET, IPPROTO_UDP, in nf_conntrack_snmp_init()
60 return nf_conntrack_helper_register(&helper, &helper_ptr); in nf_conntrack_snmp_init()
/linux/drivers/net/wireless/marvell/libertas/
H A Dfirmware.c16 const struct firmware *helper, const struct firmware *mainfw) in lbs_fw_loaded() argument
22 /* User must free helper/mainfw */ in lbs_fw_loaded()
23 priv->fw_callback(priv, ret, helper, mainfw); in lbs_fw_loaded()
79 /* No main firmware needed for this helper --> success! */ in helper_firmware_cb()
100 if (!iter->helper) { in load_next_firmware_from_table()
112 do_load_firmware(priv, iter->helper, helper_firmware_cb); in load_next_firmware_from_table()
122 * either a helper firmware and a main firmware (2-stage), or just the helper.
129 * terminated by an entry with a NULL helper name
165 * terminated by an entry with a NULL helper name
166 * @helper: On success, the helper firmware; caller must free
[all …]
/linux/arch/mips/cavium-octeon/executive/
H A DMakefile14 cvmx-helper-board.o cvmx-helper.o cvmx-helper-xaui.o \
15 cvmx-helper-rgmii.o cvmx-helper-sgmii.o cvmx-helper-npi.o \
16 cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \
19 obj-y += cvmx-helper-errata.o cvmx-helper-jtag.o cvmx-boot-vector.o
/linux/scripts/
H A Dbpf_doc.py16 helpersDocStart = 'Start of BPF helper function descriptions:'
54 class Helper(APIElement): class
56 An object representing the description of an eBPF helper function.
57 @proto: function prototype of the helper function
58 @desc: textual description of the helper function
59 @ret: description of the return value of the helper function
68 Break down helper function protocol into smaller chunks: return type,
107 list of eBPF helper functions. All the helpers that can be retrieved are
108 stored as Helper object, in the self.helpers() array.
135 return Helper(proto=proto, desc=desc, ret=ret, attrs=attrs)
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_helper_packet_access.c16 __description("helper access to packet: test1, valid packet_ptr range")
41 __description("helper access to packet: test2, unchecked packet_ptr")
59 __description("helper access to packet: test3, variable add")
89 __description("helper access to packet: test4, packet_ptr with bad range")
114 __description("helper access to packet: test5, packet_ptr with too short range")
138 __description("helper access to packet: test6, cls valid packet_ptr range")
163 __description("helper access to packet: test7, cls unchecked packet_ptr")
181 __description("helper access to packet: test8, cls variable add")
211 __description("helper access to packet: test9, cls packet_ptr with bad range")
236 __description("helper acces
[all...]
H A Dverifier_helper_value_access.c42 __description("helper access to map: full range")
68 __description("helper access to map: partial range")
98 __description("helper access to map: empty range")
125 __description("helper access to map: possibly-empty ange")
154 __description("helper access to map: out-of-bound range")
180 __description("helper access to map: negative range")
205 __description("helper access to adjusted map (via const imm): full range")
233 __description("helper access to adjusted map (via const imm): partial range")
260 __description("helper access to adjusted map (via const imm): empty range")
286 __description("helper access to adjusted map (via const imm): out-of-bound range")
[all …]
H A Dverifier_helper_access_var_len.c35 __description("helper access to variable memory: stack, bitwise AND + JMP, correct bounds")
67 __description("helper access to variable memory: stack, bitwise AND, zero included")
87 /* Call bpf_ringbuf_output(), it is one of a few helper functions with\ in stack_bitwise_and_zero_included()
102 __description("helper access to variable memory: stack, bitwise AND + JMP, wrong max")
125 __description("helper access to variable memory: stack, JMP, correct bounds")
157 __description("helper access to variable memory: stack, JMP (signed), correct bounds")
189 __description("helper access to variable memory: stack, JMP, bounds + offset")
213 __description("helper access to variable memory: stack, JMP, wrong max")
236 __description("helper access to variable memory: stack, JMP, no max check")
260 __description("helper access to variable memory: stack, JMP, no min check")
[all …]
/linux/include/net/netfilter/
H A Dnf_conntrack_helper.h66 /* name of NAT helper module */
70 /* nf_conn feature for connections that have a helper */
72 /* Helper. if any */
73 struct nf_conntrack_helper __rcu *helper; member
80 /* private helper information. */
93 void nf_conntrack_helper_put(struct nf_conntrack_helper *helper);
95 void nf_ct_helper_init(struct nf_conntrack_helper *helper,
117 pr_warn("The %s conntrack helper is scheduled for removal.\n" \
150 struct nf_conntrack_helper *helper; in nf_ct_help_put() local
157 helper = rcu_dereference(help->helper); in nf_ct_help_put()
[all …]
/linux/include/drm/
H A Ddrm_fb_helper.h6 * DRM framebuffer helper functions
69 * Driver callbacks used by the fbdev emulation helper library.
84 int (*fb_dirty)(struct drm_fb_helper *helper, struct drm_clip_rect *clip);
97 void (*fb_restore)(struct drm_fb_helper *helper);
111 void (*fb_set_suspend)(struct drm_fb_helper *helper, bool suspend);
118 * @funcs: driver callbacks for fb helper
160 * Top-level FBDEV helper lock. This protects all internal data
164 * protect all helper internal state with this lock as well as reduce
181 * If no outputs are connected (disconnected or unknown) the FB helper
194 * FB helper initialization. This needs to be tracked so that deferred
[all …]
/linux/tools/testing/vma/
H A Dshared.h89 * Helper function which provides a wrapper around a merge existing VMA
97 * Helper function to allocate a VMA and link it to the tree.
103 /* Helper function providing a dummy vm_ops->close() method.*/
108 /* Helper function to simply allocate a VMA. */
113 /* Helper function to detach and free a VMA. */
116 /* Helper function to allocate a VMA and link it to the tree. */
122 * Helper function to reset the dummy anon_vma to indicate it has not been
128 * Helper function to remove all VMAs and destroy the maple tree associated with
133 /* Helper function to determine if VMA has had vma_start_write() performed. */
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_conntrack_helper.sh3 # This tests connection tracking helper assignment:
4 # 1. can attach ftp helper to a connection from nft ruleset.
51 ct helper ftp {
56 tcp dport 2121 ct helper set "ftp"
60 tcp dport 2121 ct helper set "ftp"
79 …xec "$netns" conntrack -L -f $family -p tcp --dport "$port" 2> /dev/null |grep -q 'helper=ftp';then
81 echo "FAIL: ${netns} did not show attached helper $message" 1>&2
84 echo "PASS: ${netns} did not show attached helper $message" 1>&2
88 echo "PASS: ${netns} connection on port $port has ftp helper attached" 1>&2
90 echo "FAIL: ${netns} connection on port $port has ftp helper attached" 1>&2
/linux/include/linux/
H A Dmii.h93 * A small helper function for a common case. Returns one
111 * A small helper function that translates ethtool advertisement
139 * A small helper function that translates linkmode advertisement
167 * A small helper function that translates MII_ADVERTISE bits
194 * A small helper function that translates ethtool advertisement
214 * A small helper function that translates linkmode advertisement
237 * A small helper function that translates MII_CTRL1000
257 * A small helper function that translates MII_LPA
275 * A small helper function that translates MII_STAT1000
296 * A small helper function that translates MII_STAT1000 bits, when in
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_priv.h49 /* Helper struct for accessing a struct containing list_head array.
51 * |- Helper array
52 * [0] Helper item 0
55 * [1] Helper item 1
59 * 1. Get the helper item from the list_head item using
60 * helper item =
61 * container_of(list_head item, helper struct type, list_head field)
62 * 2. Get the contining struct from the helper item and its index in the array:
64 * container_of(helper item, containing struct type, helper field[index])
/linux/drivers/media/v4l2-core/
H A Dv4l2-ctrls-api.c21 /* Internal temporary helper struct, one for each v4l2_ext_control */
35 * Helper functions to copy control payload data from kernel space to
39 /* Helper function: copy the given control value back to the caller */
69 /* Helper function: copy the current control value back to the caller */
75 /* Helper function: copy the new control value back to the caller */
82 /* Helper function: copy the request value back to the caller */
89 /* Helper function: copy the initial control value back to the caller */
97 /* Helper function: copy the minimum control value back to the caller */
105 /* Helper function: copy the maximum control value back to the caller */
113 /* Helper function: copy the caller-provider value as the new control value */
[all …]
/linux/arch/um/os-Linux/
H A Dirq.c25 /* Helper to return an Epoll data pointer from an epoll event structure.
34 /* Helper to compare events versus the events in the epoll structure.
43 /* Helper to set the event mask.
67 * Helper to run the actual epoll_wait
90 * Helper to add a fd to epoll
108 * Helper to mod the fd event mask and/or data backreference
125 * Helper to delete the epoll fd
/linux/tools/include/uapi/linux/
H A Dbpf.h1299 * restrict map and helper usage for such programs. Sleepable BPF programs can
1830 * accessible through bpf_get_attach_cookie() BPF helper
1846 * accessible through bpf_get_attach_cookie() BPF helper
1956 * developers about the multiple available eBPF helper functions. It can be
1970 * Start of BPF helper function descriptions:
1993 * elements always exist), the helper would return an error.
2023 * This helper is a "printk()-like" facility for debugging. It
2030 * Each time the helper is called, it appends a line to the trace.
2066 * helper will return **-EINVAL** (but print nothing) if it
2072 * states that the helper should not be used "for production use"
[all …]
/linux/include/uapi/linux/
H A Dbpf.h1299 * restrict map and helper usage for such programs. Sleepable BPF programs can
1830 * accessible through bpf_get_attach_cookie() BPF helper
1846 * accessible through bpf_get_attach_cookie() BPF helper
1956 * developers about the multiple available eBPF helper functions. It can be
1970 * Start of BPF helper function descriptions:
1993 * elements always exist), the helper would return an error.
2023 * This helper is a "printk()-like" facility for debugging. It
2030 * Each time the helper is called, it appends a line to the trace.
2066 * helper will return **-EINVAL** (but print nothing) if it
2072 * states that the helper should not be used "for production use"
[all …]
/linux/fs/ubifs/
H A Dmisc.h12 * This file contains miscellaneous helper functions.
22 * This helper function returns %1 if @znode is dirty and %0 otherwise.
33 * This helper function returns %1 if @znode is obsolete and %0 otherwise.
44 * This helper function returns %1 if @znode is has COW flag set and %0
69 * This helper function looks for znode child starting at index @start. Returns
142 * This is a helper function which encodes major/minor numbers of a device node
158 * This is a helper function which increased amount of dirty LEB space. Returns
171 * This helper function cleans the "taken" flag of a logical eraseblock in the
267 * This helper function returns the log LEB number which goes next after LEB

12345678910>>...67