llist_empty(9)
π llist_empty(9) β a Kernel API Manual moment
okay so this is a page from the Kernel API Manual, and honestly it's a little icon: it's llist_empty, your go-to vibe check for a lock-less list π¦
β¨ NAME β¨
llist_empty β tests whether a lock-less list is empty. that's it, that's the whole job, and she does it slayfully π
π SYNOPSIS π
bool llist_empty (const struct llist_head *head );
πΈ ARGUMENTS πΈ
headβ the list you wanna test, bestie. that's the one. give her a poke π
π DESCRIPTION π
so likeβ¦ this is not guaranteed to be accurate or up to date π no cap, that's literally in the docs. it's just a quick lil way to test whether the list is empty without deleting something from the list.
lowkey important: think of it as a peek, not a promise. it's giving "quick check energy," not "source of truth energy" π
π«Ά SEE ALSO π«Ά
Kernel file ./include/linux/llist.h β plus the whole friend group, fr fr:
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_add_batch(9)llist_add(9)llist_del_all(9)llist_del_first_init(9)
like, the entire llist squad showed up. we love a supportive cast πβ
and that's the page!! mwah π this one came out of the ./include/linux corner of the world, dated October 2026 β so like, future-era documentation, main character energy only πβ¨ bye bestie, go check if your list is empty ππ§π
π¦ 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