list_splice_tail(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms