diff options
author | Andrii Nakryiko <[email protected]> | 2023-03-02 15:50:10 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-03-04 11:14:32 -0800 |
commit | f4b4eee6169bb33c5157ebe07e53d7e4be7631c0 (patch) | |
tree | d251cda307aaca61992ee1915cc255f9c2ee6166 /lib/string_helpers.c | |
parent | a461f5adf17756e99ee0903d1a40961b0342ebb3 (diff) |
bpf: add support for fixed-size memory pointer returns for kfuncs
Support direct fixed-size (and for now, read-only) memory access when
kfunc's return type is a pointer to non-struct type. Calculate type size
and let BPF program access that many bytes directly. This is crucial for
numbers iterator.
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions