llist_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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