aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-02-10 09:53:35 +0000
committerMiguel Ojeda <ojeda@kernel.org>2025-03-08 22:35:34 +0100
commit998c65733b95e8de45cbc10aa8d69652d15fa9d3 (patch)
tree7630a96deea4a3901ce5d7225bcea3f97edb7734 /rust/helpers/task.c
parentrust: task: make Pid type alias public (diff)
downloadwireguard-linux-998c65733b95e8de45cbc10aa8d69652d15fa9d3.tar.xz
wireguard-linux-998c65733b95e8de45cbc10aa8d69652d15fa9d3.zip
rust: list: extract common code for insertion
To prepare for a new cursor API that has the ability to insert elements into the list, extract the common code needed for this operation into a new `insert_inner` method. Both `push_back` and `push_front` are updated to use the new function. Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20250210-cursor-between-v7-1-36f0215181ed@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions