diff options
author | Jordan Rome <linux@jordanrome.com> | 2024-08-23 12:51:00 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-08-23 15:40:01 -0700 |
commit | 65ab5ac4df012388481d0414fcac1d5ac1721fb3 (patch) | |
tree | 2f677483b768b820295a519019d1b11b3a30c7b6 /scripts/generate_rust_analyzer.py | |
parent | 5772c3458bb8d17d763e0f411e1bae1bf4eda88d (diff) |
bpf: Add bpf_copy_from_user_str kfunc
This adds a kfunc wrapper around strncpy_from_user,
which can be called from sleepable BPF programs.
This matches the non-sleepable 'bpf_probe_read_user_str'
helper except it includes an additional 'flags'
param, which allows consumers to clear the entire
destination buffer on success or failure.
Signed-off-by: Jordan Rome <linux@jordanrome.com>
Link: https://lore.kernel.org/r/20240823195101.3621028-1-linux@jordanrome.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions