__gfs2_holder_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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