diff options
Diffstat (limited to 'devdocs/gcc~13/bpf-function-attributes.html')
| -rw-r--r-- | devdocs/gcc~13/bpf-function-attributes.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devdocs/gcc~13/bpf-function-attributes.html b/devdocs/gcc~13/bpf-function-attributes.html new file mode 100644 index 00000000..eac33473 --- /dev/null +++ b/devdocs/gcc~13/bpf-function-attributes.html @@ -0,0 +1,11 @@ +<div class="subsection-level-extent" id="BPF-Function-Attributes"> <div class="nav-panel"> <p> Next: <a href="c-sky-function-attributes" accesskey="n" rel="next">C-SKY Function Attributes</a>, Previous: <a href="blackfin-function-attributes" accesskey="p" rel="prev">Blackfin Function Attributes</a>, Up: <a href="function-attributes" accesskey="u" rel="up">Declaring Attributes of Functions</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="subsection" id="BPF-Function-Attributes-1"><span>6.33.8 BPF Function Attributes<a class="copiable-link" href="#BPF-Function-Attributes-1"> ¶</a></span></h1> <p>These function attributes are supported by the BPF back end: </p> <dl class="table"> <dt> +<span><code class="code">kernel_helper</code><a class="copiable-link" href="#index-kernel-helper_002c-function-attribute_002c-BPF"> ¶</a></span> +</dt> <dd> +<p>use this attribute to indicate the specified function declaration is a kernel helper. The helper function is passed as an argument to the attribute. Example: </p> <div class="example smallexample"> <pre class="example-preformatted" data-language="cpp">int bpf_probe_read (void *dst, int size, const void *unsafe_ptr) + __attribute__ ((kernel_helper (4)));</pre> +</div> </dd> </dl> </div><div class="_attribution"> + <p class="_attribution-p"> + © Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br> + <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/BPF-Function-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/BPF-Function-Attributes.html</a> + </p> +</div> |
