llist_add_batch(9)
π 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
init_llist_head(9)init_llist_node(9)llist_on_list(9)llist_entry(9)member_address_is_nonnull(9)llist_for_each(9)llist_for_each_safe(9)llist_for_each_entry(9)llist_for_each_entry_safe(9)llist_empty(9)llist_add(9)llist_del_all(9)llist_del_first_init(9)
ok bye bestie π«Ά source/version: ./include/linux Β· date: October 2026 Β· manual: llist_add_batch(9) π
π¦ 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