Skip to content
Snippets Groups Projects
Commit 9eeb3aa3 authored by Hengqi Chen's avatar Hengqi Chen Committed by Alexei Starovoitov
Browse files

bpf: Add bpf_skc_to_unix_sock() helper


The helper is used in tracing programs to cast a socket
pointer to a unix_sock pointer.
The return value could be NULL if the casting is illegal.

Suggested-by: default avatarYonghong Song <yhs@fb.com>
Signed-off-by: default avatarHengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211021134752.1223426-2-hengqi.chen@gmail.com
parent 44ce0ac1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment