title | description |
---|---|
Helper Function 'bpf_skc_to_unix_sock' |
This page documents the 'bpf_skc_to_unix_sock' eBPF helper function, including its defintion, usage, program types that can use it, and examples. |
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
Dynamically cast a sk pointer to a unix_sock pointer.
sk if casting is valid, or NULL otherwise.
#!c static struct unix_sock *(* const bpf_skc_to_unix_sock)(void *sk) = (void *) 178;
!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome
This helper call can be used in the following program types:
- BPF_PROG_TYPE_FLOW_DISSECTOR
- BPF_PROG_TYPE_SK_LOOKUP
- BPF_PROG_TYPE_SK_MSG
- BPF_PROG_TYPE_SK_SKB
- BPF_PROG_TYPE_SOCK_OPS
!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome