2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. _bpf-function-attributes:
8 BPF Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^
11 These function attributes are supported by the BPF back end:
13 .. index:: kernel helper, function attribute, BPF
15 .. bpf-fn-attr:: kernel_helper
17 use this attribute to indicate the specified function declaration is a
18 kernel helper. The helper function is passed as an argument to the
23 int bpf_probe_read (void *dst, int size, const void *unsafe_ptr)
24 __attribute__ ((kernel_helper (4)));