list_splice(9)
β¨ NAME β¨
okay so bestie, this is list_splice from the Kernel API Manual β aka list_splice(9) π
β and what it does is join two lists. Thatβs the whole gig. Itβs literally designed for stacks, no cap. π«Ά
π¦ SYNOPSIS π¦
hereβs the exact signature, character for character:
void list_splice (const struct list_head *list , struct list_head *head
);
it returns void, so thereβs nothing coming back to catch β it just does its thing and thatβs it β¨
π ARGUMENTS π
listβ the new list to add. fresh list energy, mwah. πheadβ the place to add it in the first list. thatβs where it gets spliced in, periodt. π
π SEE ALSO π
the kernel file is ./tools/include/linux/list.h, and the whole linked-list friend group is here:
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_tail(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)
okay thatβs the whole page, bestie π«Ά β sourced from ./tools/include/linux, dated October 2026, and starring list_splice(9) πβ¨
π¦ 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