mirror_ubuntu-kernels/tools/include/uapi
Joanne Koong 13bbbfbea7 bpf: Add bpf_dynptr_read and bpf_dynptr_write
This patch adds two helper functions, bpf_dynptr_read and
bpf_dynptr_write:

long bpf_dynptr_read(void *dst, u32 len, struct bpf_dynptr *src, u32 offset);

long bpf_dynptr_write(struct bpf_dynptr *dst, u32 offset, void *src, u32 len);

The dynptr passed into these functions must be valid dynptrs that have
been initialized.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220523210712.3641569-5-joannelkoong@gmail.com
2022-05-23 14:31:28 -07:00
..
asm libbpf: Add ARC support to bpf_tracing.h 2022-04-10 18:53:37 -07:00
asm-generic tools headers UAPI: Sync asm-generic/mman-common.h with the kernel 2022-04-01 16:19:35 -03:00
drm tools headers UAPI: Sync drm/i915_drm.h with the kernel sources 2022-04-01 16:19:35 -03:00
linux bpf: Add bpf_dynptr_read and bpf_dynptr_write 2022-05-23 14:31:28 -07:00
sound tools include UAPI: Sync sound/asound.h copy with the kernel sources 2022-02-06 09:08:46 -03:00