lwq_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ lwq_empty(9) πŸ¦‹

okay bestie, this one is straight from the Kernel API Manual β€” it's lwq_empty(9), aka the vibe check for an lwq. ✨

🌸 NAME 🌸

lwq_empty β€” test if lwq contains any entry πŸ‘€

πŸŽ€ SYNOPSIS πŸŽ€

bool lwq_empty (struct lwq *q );

πŸ’– ARGUMENTS πŸ’–

  • q β€” the lwq object 🫢

✨ DESCRIPTION ✨

The way that this empty test is packing an acquire barrier πŸ’… β€” yes, on purpose β€” is so that if a wakeup is sent when lwq_dequeue returns true, it is safe to go to sleep after a test on lwq_empty. that's the important bit, bestie 🫑

πŸ‘‘ SEE ALSO πŸ‘‘


made with πŸ’– from source/version ./include/linux Β· date: October 2026 Β· page: lwq_empty(9) πŸŽ€

πŸ“¦ where this page comes from