summaryrefslogtreecommitdiff
path: root/io_uring/splice.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2022-11-20 11:54:32 -0800
committerAlexei Starovoitov <ast@kernel.org>2022-11-20 15:43:37 -0800
commitfd264ca020948a743e4c36731dfdecc4a812153c (patch)
tree9a615b76021a3dcebdd178438bab629077e14962 /io_uring/splice.c
parentcfe1456440c8feaf6558577a400745d774418379 (diff)
downloadlinux-fd264ca020948a743e4c36731dfdecc4a812153c.tar.gz
linux-fd264ca020948a743e4c36731dfdecc4a812153c.tar.bz2
linux-fd264ca020948a743e4c36731dfdecc4a812153c.zip
bpf: Add a kfunc to type cast from bpf uapi ctx to kernel ctx
Implement bpf_cast_to_kern_ctx() kfunc which does a type cast of a uapi ctx object to the corresponding kernel ctx. Previously if users want to access some data available in kctx but not in uapi ctx, bpf_probe_read_kernel() helper is needed. The introduction of bpf_cast_to_kern_ctx() allows direct memory access which makes code simpler and easier to understand. Signed-off-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20221120195432.3113982-1-yhs@fb.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'io_uring/splice.c')
0 files changed, 0 insertions, 0 deletions