[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260209025250.55750-1-pilgrimtao@gmail.com>
Date: Mon, 9 Feb 2026 10:52:48 +0800
From: Chengkaitao <pilgrimtao@...il.com>
To: ast@...nel.org,
daniel@...earbox.net,
andrii@...nel.org,
martin.lau@...ux.dev,
eddyz87@...il.com,
song@...nel.org,
yonghong.song@...ux.dev,
john.fastabend@...il.com,
kpsingh@...nel.org,
sdf@...ichev.me,
haoluo@...gle.com,
jolsa@...nel.org,
shuah@...nel.org
Cc: chengkaitao@...inos.cn,
leon.hwang@...ux.dev,
bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: [PATCH 0/2] bpf: Introduce the bpf_list_del API
From: Kaitao Cheng <chengkaitao@...inos.cn>
In BPF, a list can only be used to implement a stack structure.
Due to an incomplete API set, only FIFO or LIFO operations are
supported.
We propose introducing the bpf_list_del API, which allows users
to directly remove a node from the list if the node pointer is
obtained beforehand. This patch enhances the BPF list API,
making it more list-like.
Kaitao Cheng (2):
bpf: Introduce the bpf_list_del kfunc.
selftests/bpf: Add test cases for bpf_list_del
kernel/bpf/helpers.c | 19 +++++++++
kernel/bpf/verifier.c | 6 ++-
.../testing/selftests/bpf/bpf_experimental.h | 11 +++++
.../selftests/bpf/progs/refcounted_kptr.c | 41 +++++++++++++++++++
4 files changed, 76 insertions(+), 1 deletion(-)
--
2.50.1 (Apple Git-155)
Powered by blists - more mailing lists