diff options
author | 2022-05-23 14:07:08 -0700 | |
---|---|---|
committer | 2022-05-23 14:31:24 -0700 | |
commit | 263ae152e96253f40c2c276faad8629e096b3bad (patch) | |
tree | 85bd51d3eaedd4ea9e10f886f7c2d145d3f25246 /drivers | |
parent | bpf: Add verifier support for dynptrs (diff) | |
download | linux-dev-263ae152e96253f40c2c276faad8629e096b3bad.tar.xz linux-dev-263ae152e96253f40c2c276faad8629e096b3bad.zip |
bpf: Add bpf_dynptr_from_mem for local dynptrs
This patch adds a new api bpf_dynptr_from_mem:
long bpf_dynptr_from_mem(void *data, u32 size, u64 flags, struct bpf_dynptr *ptr);
which initializes a dynptr to point to a bpf program's local memory. For now
only local memory that is of reg type PTR_TO_MAP_VALUE is supported.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220523210712.3641569-3-joannelkoong@gmail.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions