list_move_tail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… list_move_tail(9) β€” a Kernel API Manual moment

okay so bestie, welcome to list_move_tail from the Kernel API Manual (yes, the (9) section, we love a kernel-internals era) ✨ this is the glow-up-and-relocate of linked list entries and honestly it ate.


🌸 NAME 🌸

list_move_tail β€” delete from one list and add as another's tail

like, it's giving "you're not leaving, you're just changing friend groups" β€” the entry gets unlinked from where it was and re-homed at the end of a different list πŸ¦‹


✨ SYNOPSIS ✨

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

that's it, no return value, no drama, just vibes and two pointers πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • list β€” the entry to move. this is our main character, the one packing its bags 🧳
  • head β€” the head that will follow our entry. lowkey spooky phrasing ngl, but it's literally just the list head whose tail our entry is about to become πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

this is the part where the manpage flexes its entire contact list, and honestly? iconic. no cap, the whole squad is here:

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_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_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)

forty-something cross-references, every single one of them listed, periodt πŸ™ˆπŸ’–


sign-off 🫢

this little masterpiece lives in ./tools/include/linux and it slayed into existence in October 2026 β€” so when you cite it, cite it cute: ./tools/include/linux, October 2026, list_move_tail(9). mwah πŸ’‹β­

πŸ“¦ where this page comes from