llist_add(9)
llist_add(9) π
okay bestie, this oneβs from the Kernel API Manual, and itβs lowkey iconic: weβre adding a new entry to a lock-less list. Letβs get into it β¨
β¨ NAME β¨
llist_add β add a new entry π
β¨ SYNOPSIS β¨
bool llist_add (struct llist_node *new , struct llist_head *head );
β¨ ARGUMENTS β¨
newβ the new entry to be added, periodt πheadβ the head for your lock-less list π«Ά
β¨ DESCRIPTION β¨
Returns true if the list was empty prior to adding this entry. Not me checking whether the list was empty before the glow-up πβ¨
β¨ SEE ALSO β¨
Kernel file ./include/linux/llist.h plus these besties:
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_batch(9)llist_del_all(9)llist_del_first_init(9)
source/version: ./include/linux, date: October 2026 β bye bestie, mwah ππ
π¦ 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