diff options
| author | Joanne Koong <[email protected]> | 2022-05-23 21:07:10 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-05-23 21:31:28 +0000 |
| commit | 13bbbfbea7598ea9f8d9c3d73bf053bb57f9c4b2 (patch) | |
| tree | 418774726bb3e4a88cd5ce4b75f5360e73d90b9f /net/unix/af_unix.c | |
| parent | bpf: Dynptr support for ring buffers (diff) | |
| download | kernel-13bbbfbea7598ea9f8d9c3d73bf053bb57f9c4b2.tar.gz kernel-13bbbfbea7598ea9f8d9c3d73bf053bb57f9c4b2.zip | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
