queued_fetch...ding_acquire(9)
π queued_fetch...ding_acquire(9) π
okay so this is a page from the Kernel API Manual (yes that's the manual name, we stan a classic) and bestie, it's a short one but it's mighty. let's get into it π«Ά
β¨ NAME β¨
queued_fetch_set_pending_acquire β fetch the whole lock value and set pending
like, the whole entire value. not a little piece. the whole thing. and then it sets pending too. multitasking queen π
πΈ SYNOPSIS πΈ
u32 queued_fetch_set_pending_acquire (struct qspinlock *lock );
that's it. that's the whole signature. u32 going in, u32 coming back out, one pointer in the middle. iconic minimalism π
π ARGUMENTS π
lockβ Pointer to queued spinlock structure
that's the vibe. you hand it a pointer to a queued spinlock structure and it does its thing. no cap π₯
β RETURN β
The previous lock value
so it gives you back what the lock value was before β the previous one, the original one, the one from before the whole fetch-and-set-pending situation happened. lowkey useful ngl π¦
π DESCRIPTION π
okay so here's the entire description, and I'm not even kidding, this is literally all of it:
*,*,* -> *,1,*
that's it bestie. that's the whole description. it's giving "the author was running out of time" energy π but like, it is saying something: three whatever-they-ares turn into a star, a 1, and another star. the middle bit becomes 1. that's the whole character arc. we love a transformation arc β¨
ngl this is the most mysterious description I've ever read on a manpage and I'm kind of obsessed with it π
π§ SEE ALSO π§
- Kernel file
./kernel/locking/qspinlock.hπ clear_pending(9)clear_pending_set_locked(9)clear_pending(9)clear_pending_set_locked(9)xchg_tail(9)set_locked(9)
and yes, clear_pending(9) and clear_pending_set_locked(9) are each listed twice in here β that's not me being sloppy, that's canon, the original said it twice so I said it twice. consistency is a personality trait π
π tiny heads up bestie: the description being *,*,* -> *,1,* means there's genuinely not more to explain here. don't go inventing behaviour for it, okay? what's on the page is what's on the page. mwah π«Ά
and that's the whole page!! short, sweet, and slightly cryptic, just how we like 'em πΈ this came out of the source dir ./kernel/locking, dated October 2026, and the header and footer both spell the name queued_fetch...ding_acquire(9) with the little ... in the middle, so if you're grepping for it, use the truncated form π periodt π
π¦ 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