Helper function bpf_sk_storage_delete
Definition
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
Delete a bpf-local-storage from a sk.
Returns
0 on success.
-ENOENT if the bpf-local-storage cannot be found. -EINVAL if sk is not a fullsock (e.g. a request_sock).
static long (* const bpf_sk_storage_delete)(void *map, void *sk) = (void *) 108;
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
This helper call can be used in the following program types:
BPF_PROG_TYPE_CGROUP_SKB
BPF_PROG_TYPE_CGROUP_SOCKOPT
BPF_PROG_TYPE_CGROUP_SOCK_ADDR
BPF_PROG_TYPE_LSM
BPF_PROG_TYPE_SCHED_ACT
BPF_PROG_TYPE_SCHED_CLS
BPF_PROG_TYPE_SK_MSG
BPF_PROG_TYPE_SOCK_OPS
BPF_PROG_TYPE_STRUCT_OPS
BPF_PROG_TYPE_TRACING
v5.11
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome