__gfs2_holder_init(9)
β¨ __gfs2_holder_init(9) β¨
okay so this is a page from the Kernel API Manual and bestie, it's a short one but it SLAPS. It's all about __gfs2_holder_init β the function that sets up a struct gfs2_holder the default way. that's it. that's the vibe. π
π NAME π
__gfs2_holder_init β initialize a struct gfs2_holder in the default way
like, it's the default way. the standard-issue, no-frills, factory-settings way. iconic behaviour honestly π«Ά
πΈ SYNOPSIS πΈ
void __gfs2_holder_init (struct gfs2_glock *gl , unsigned int state ,
u16 flags , struct gfs2_holder *gh , unsigned long ip );
it returns void, so don't be waiting around for a return value, bestie, there isn't one π
π ARGUMENTS π
glβ the glock. literally the glock. that's the whole description. πstateβ the state we're requesting. this is the thing you actually want, so know what you're asking for before you ask for it β¨flagsβ the modifier flags. the little seasoning on top of your request πΆοΈghβ the holder structure. this is the thing getting initialized, so likeβ¦ obviously it's here πipβ caller's return address for debugging. it's giving "who called me and from where" energy π β debug-only, but so useful.
ngl, the argument list is short but every single one matters. don't skip any of them, not even ip. π«‘
π¦ SEE ALSO π¦
so this whole thing lives in the kernel file ./fs/gfs2/glock.c, and there is a long list of siblings, bestie. buckle up, we're going through all of them, no cap:
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_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)
like. that's a whole friend group. go read them too if you're nosy π§
π friendly reminder: this page tells you what __gfs2_holder_init does and nothing more β it's the default init, so if you needed something custom, that's a different function's problem, iykyk.
and that's the whole page, bestie!! short, sweet, slayed. π
source dir: ./fs/gfs2 Β· date: October 2026 Β· __gfs2_holder_init(9) β mwah, see you in the next manpage ππ
π¦ 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