Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: bpf: bpf_lsm.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/fcee73b9bb55a8d0efd07cf04076c66278a42db4.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
6aadf740 4cd4bdf8

+7 -6
+7 -6
Documentation/bpf/bpf_lsm.rst
··· 20 20 Other LSM hooks which can be instrumented can be found in 21 21 ``include/linux/lsm_hooks.h``. 22 22 23 - eBPF programs that use :doc:`/bpf/btf` do not need to include kernel headers 24 - for accessing information from the attached eBPF program's context. They can 25 - simply declare the structures in the eBPF program and only specify the fields 26 - that need to be accessed. 23 + eBPF programs that use Documentation/bpf/btf.rst do not need to include kernel 24 + headers for accessing information from the attached eBPF program's context. 25 + They can simply declare the structures in the eBPF program and only specify 26 + the fields that need to be accessed. 27 27 28 28 .. code-block:: c 29 29 ··· 88 88 89 89 The ``__attribute__((preserve_access_index))`` is a clang feature that allows 90 90 the BPF verifier to update the offsets for the access at runtime using the 91 - :doc:`/bpf/btf` information. Since the BPF verifier is aware of the types, it 92 - also validates all the accesses made to the various types in the eBPF program. 91 + Documentation/bpf/btf.rst information. Since the BPF verifier is aware of the 92 + types, it also validates all the accesses made to the various types in the 93 + eBPF program. 93 94 94 95 Loading 95 96 -------