list_replace_init(9)
π list_replace_init(9) β Kernel API Manual π
okay so bestie, welcome to the list_replace_init(9) page. We are in the Kernel API Manual, and we're about to replace a list entry and initialize the old one like it's literally nothing. π
β¨
πΈ NAME πΈ
list_replace_init β replace old entry by new one and initialize the old one π
β¨ SYNOPSIS β¨
void list_replace_init (struct list_head *old , struct list_head *new );
π ARGUMENTS π
oldβ the element to be replaced πnewβ the new element to insert β¨
π¦ DESCRIPTION π¦
okay so here's the tea β: if old was empty, it will be overwritten. that's the whole vibe, no cap π
π SEE ALSO π
Kernel file ./scripts/include/list.h β plus these iconic besties, all in their exact order π«Ά:
container_of(9)INIT_LIST_HEAD(9)list_add(9)list_add_tail(9)list_del(9)list_replace(9)list_move(9)list_move_tail(9)list_is_first(9)list_is_last(9)list_is_head(9)list_empty(9)list_entry(9)list_first_entry(9)list_last_entry(9)list_next_entry(9)list_prev_entry(9)list_entry_is_head(9)list_for_each_entry(9)list_for_each_entry_reverse(9)list_for_each_entry_safe(9)hlist_unhashed(9)hlist_del(9)hlist_del_init(9)hlist_add_head(9)hlist_for_each_entry(9)hlist_for_each_entry_safe(9)
this page lives under ./scripts/include, it's dated October 2026, and it's literally list_replace_init(9) β periodt, slay, go be a main character in some linked lists ππ¦β¨
π¦ 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