find_last_waiter(9)
π find_last_waiter(9) β from the Kernel API Manual β¨
okay bestie, welcome to the group chat π«Ά this one lives in the Kernel API Manual and it's genuinely so chill. no cap, it's a tiny little icon and it does exactly one thing, but it does it beautifully.
πΈ NAME πΈ
find_last_waiter β find the last gh that's waiting for the glock π
like, the very last one in the queue. the final girl. the one at the end. periodt.
π¦ SYNOPSIS π¦
struct gfs2_holder * find_last_waiter (const struct gfs2_glock *gl );
that's it. that's the whole signature. so clean. so iconic. π₯
π ARGUMENTS π
glβ the glock π just hand her the glock and she'll go find the last waiter for you, no questions asked.
β DESCRIPTION β
okay so here's the tea β β this is also a fast way of finding out if there are any waiters at all. lowkey a two-for-one situation and we love that for us. π
if you get something back, there are waiters. if you don't⦠well. vibe check passed, nobody's waiting. iykyk.
π SEE ALSO π
all the siblings and cousins and neighbors, live from the kernel file ./fs/gfs2/glock.c:
wake_up_glock(9),gfs2_glock_hold(9),gfs2_glock_put(9),may_grant(9),do_error(9),find_first_holder(9),do_promote(9),find_first_waiter(9),state_change(9),finish_xmote(9),do_xmote(9),run_queue(9),glock_set_object(9),glock_clear_object(9),gfs2_glock_get(9),__gfs2_holder_init(9),gfs2_holder_reinit(9),gfs2_holder_uninit(9),gfs2_glock_holder_ready(9),gfs2_glock_wait(9),gfs2_glock_async_wait(9),request_demote(9),add_to_queue(9),gfs2_glock_nq(9),gfs2_glock_poll(9),gfs2_glock_dq(9),gfs2_glock_dq_uninit(9),gfs2_glock_nq_num(9),glock_compare(9),nq_m_sync(9),gfs2_glock_nq_m(9),gfs2_glock_dq_m(9),gfs2_should_freeze(9),gfs2_glock_complete(9),glock_hash_walk(9),thaw_glock(9),gfs2_glock_thaw(9),gfs2_wait_glocks(9),dump_holder(9),gfs2_dump_glock(9)
the whole friend group fr fr π«Ά note that find_first_waiter(9) is right there too β she's the other end of the line, and honestly they're giving main character energy together π
mwah π that's the page! brought to you by ./fs/gfs2, dated October 2026, and yeah β this is find_last_waiter(9), signing off πβ¨
π¦ 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