list_add_tail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– list_add_tail(9) β€” Kernel API Manual πŸ’–

Okay bestie, welcome to the list_add_tail page πŸ’… This is the Kernel API Manual moment, and we’re gonna get you comfy with it, no cap.


🌸 NAME 🌸

list_add_tail β€” add a new entry. That’s the headline, periodt ✨

✨ SYNOPSIS ✨

void list_add_tail (struct list_head *new , struct list_head *head );

πŸŽ€ ARGUMENTS πŸŽ€

  • new β€” new entry to be added. The fresh little entry, the newcomer, the main character 🫢
  • head β€” list head to add it before. This is the anchor point, bestie β€” new goes right before it πŸ’«

πŸ¦‹ DESCRIPTION πŸ¦‹

Insert a new entry before the specified head. This is useful for implementing queues β€” like, literally queue behavior, and it’s lowkey iconic for that 🌈

πŸ’… SEE ALSO πŸ’…

Kernel file: ./tools/include/linux/list.h β€” that’s where the source lives, bestie. And the whole squad is:


Okay bye bestie! Sign-off cuteness: source/version is ./tools/include/linux, date is October 2026, and the page is list_add_tail(9) β€” mwah πŸ’–βœ¨

πŸ“¦ where this page comes from