llist_add_batch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… llist_add_batch(9) πŸ’…

okay so bestie, this is a page from the Kernel API Manual and it’s all about llist_add_batch β€” the batch-add queen of lock-less linked lists πŸ‘‘. No cap, she’s here to add several linked entries in batch.


🌸 NAME 🌸

llist_add_batch β€” add several linked entries in batch ✨

✨ SYNOPSIS ✨

the signature is giving:

bool llist_add_batch (struct llist_node *new_first , struct llist_node *new_last , struct llist_head *head );

πŸŽ€ ARGUMENTS πŸŽ€

  • new_first β€” first entry in the batch to be added 🫢
  • new_last β€” last entry in the batch to be added πŸ’–
  • head β€” the head for your lock-less list πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

It returns whether the list is empty before adding. That’s literally the vibe check: empty-before-adding, returned to you. πŸ’…

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/llist.h


ok bye bestie 🫢 source/version: ./include/linux Β· date: October 2026 Β· manual: llist_add_batch(9) πŸ’–

πŸ“¦ where this page comes from