gfs2_glock_holder_ready(9)
π gfs2_glock_holder_ready
okay so real talk, this is a page from the Kernel API Manual (gfs2_glock_holder_ready(9)), and honestly? she's lowkey iconic for how much she does with so little. let's get into it π«Ά
πΈ NAME πΈ
gfs2_glock_holder_ready β bestie, the holder is ready and its error code can be collected β¨
π SYNOPSIS π
int gfs2_glock_holder_ready (struct gfs2_holder *gh );
π¦ ARGUMENTS π¦
ghβ the glock holder. that's her. that's the main character π
π DESCRIPTION π
okay so here's the vibe: you call gfs2_glock_holder_ready when a glock holder no longer needs to be waited for. why? because one of two things happened, and both of them are a whole mood:
- it's now held β meaning
HIF_HOLDERis set, andgh_error == 0πβ¨ - or acquiring the lock has failed β meaning
gh_error != 0π
either way, the waiting is over, so go ahead and collect that error code, no cap π§
π₯ SEE ALSO π₯
the whole friend group, fr fr β kernel file ./fs/gfs2/glock.c plus:
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), find_last_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_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)
ngl, that's a lot of cross-references. read them all. iykyk ππ
k bye bestie!! this one's sourced from ./fs/gfs2, dated October 2026, and that's the whole gfs2_glock_holder_ready(9) moment β slay, periodt, go collect your error codes responsibly ππ
π¦ 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