skb_queue_empty_lockless(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– skb_queue_empty_lockless β€” from the Kernel API Manual, section 9 πŸŽ€

okay so bestie, we're hanging out in the Linux kernel API manual today (section 9, if you're keeping track) and honestly? this one's a little icon. tiny function, huge main character energy. let's get into it ✨


✨ NAME ✨

skb_queue_empty_lockless β€” check if a queue is empty 🫢

like, that's literally the whole job. she looks at a queue and tells you if there's anything in it. no cap.


🌸 SYNOPSIS 🌸

bool skb_queue_empty_lockless (const struct sk_buff_head *list );

(yes that space before the ) is real, don't come for me, I copied it exactly πŸ’…)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • list β€” the queue head. that's it. that's the whole argument. she's low maintenance πŸ’œ

🌈 DESCRIPTION 🌈

Returns true if the queue is empty, false otherwise. periodt.

the tea here is that this variant can be used in lockless contexts πŸ”₯ β€” so yes, you're out here vibing without a lock, and that's exactly what she's built for. not me being obsessed with a boolean return πŸ’€


⭐ SEE ALSO ⭐

first up, the source of truth β€” Kernel file ./include/linux/skbuff.h. go read it, she's thorough.

and now, the extended universe. buckle up bestie, this list is LONG and every single one of these is invited to the function party πŸŽ‰:

see? told you. whole extended universe. iykyk πŸ’«


real talk though: skb_queue_empty(9) is right there in that list too, so if you ever forget which one is the lockless girly, just remember β€” this one says it right in the name πŸ’…βœ¨

and that's the page!! sourced from ./include/linux, dated October 2026 β€” so mark your calendar, bestie, she's stamped and official πŸ—“οΈπŸ’– mwah, stan the kernel, bye πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from