list_splice_tail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ list_splice_tail β€” the kernel API manual, bestie edition πŸ’œ

okay so you found the page for list_splice_tail, a little function from the Kernel API Manual, and I'm gonna walk you through it like we're texting at 2am 🫢 no cap, this one is short and sweet and it slays.


✨ NAME ✨

list_splice_tail β€” join two lists, each list being a queue πŸŽ€

like, literally just glue two lists together, but the queue way. iconic behaviour honestly.


🌸 SYNOPSIS 🌸

void list_splice_tail (struct list_head *list , struct list_head *head
);

that's it. that's the whole signature. two pointers, no return value (void β€” it gives you nothing back, main character energy πŸ’…), and both of them are struct list_head * because of course they are, this is the kernel, everything is a list_head 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • list β€” the new list you're adding. the fresh content, the incoming vibe ✨
  • head β€” the place to add it in the first list. like, where the new stuff gets dropped in πŸŽ€

that's the whole argument list. two items. we love a low-maintenance function.


πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where the manpage just goes off β€” like, this is the whole group chat, and honestly you should go read them all because they're all in the kernel file ./tools/include/linux/list.h 🌈

list_add(9), list_add_tail(9), list_replace(9), list_del_init(9), list_move(9), list_move_tail(9), list_is_first(9), list_is_last(9), list_empty(9), list_empty_careful(9), list_rotate_left(9), list_is_singular(9), list_cut_position(9), list_splice(9), list_splice_init(9), list_splice_tail_init(9), list_entry(9), list_first_entry(9), list_last_entry(9), list_first_entry_or_null(9), list_last_entry_or_null(9), list_next_entry(9), list_prev_entry(9), list_for_each(9), list_for_each_prev(9), list_for_each_safe(9), list_for_each_prev_safe(9), list_for_each_entry(9), list_for_each_entry_reverse(9), list_prepare_entry(9), list_for_each_entry_continue(9), list_for_each_entry_continue_reverse(9), list_for_each_entry_from(9), list_for_each_entry_safe(9), list_for_each_entry_safe_continue(9), list_for_each_entry_safe_from(9), list_for_each_entry_safe_reverse(9), list_safe_reset_next(9), hlist_for_each_entry(9), hlist_for_each_entry_continue(9), hlist_for_each_entry_from(9), hlist_for_each_entry_safe(9), list_del_range(9), list_for_each_from(9)

bestie there are so many of these and yes you do need to know them, they will absolutely come up in a code review, iykyk πŸ’€

and that's the page!! you ate that πŸ’–

cute little sign-off: this whole thing lives in ./tools/include/linux, it's dated October 2026, and it's from the Kernel API Manual β€” go forth and splice your tails responsibly, bestie 🧚⭐

πŸ“¦ where this page comes from