list_replace_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🫢:


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