gfs2_glock_nq_m(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gfs2_glock_nq_m(9) β€” like, the Kernel API Manual page, bestie

okay so real talk, this one lives in the Kernel API Manual and it's the glow-up you call when one glock just isn't enough. multiple glocks?? at once?? we love a multitasker. ✨


🌸 NAME 🌸

gfs2_glock_nq_m β€” acquire multiple glocks 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int gfs2_glock_nq_m (unsigned int num_gh , struct gfs2_holder *ghs );

like. that's it. that's the whole vibe. int in, int out, glocks acquired. πŸ’…


✨ ARGUMENTS ✨

  • num_gh β€” the number of structures, fr fr. it's an unsigned int, so keep it cute and non-negative. it's literally telling the function how many holders are in your little array. πŸ“
  • ghs β€” an array of struct gfs2_holder structures. an array, bestie, not a single one. this is the group chat of holders. πŸ’œ

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” meaning all glocks acquired. every single one. ate. πŸ‘‘
  • errno on failure β€” and here's the tea: on failure, no glocks acquired. zero. it's all-or-nothing, bestie, no half-vibes. 😭

🌈 SEE ALSO 🌈

Kernel file ./fs/gfs2/glock.c, and honestly the whole glock friend group:

like yes that's a lot of friends but they're all iconic in their own way, iykyk 🧚


ngl if you're calling this from a kernel module you already know what you're doing, so go off. just remember: all glocks or no glocks. no in-between. 🩷

and that's the page!! source dir was ./fs/gfs2, dated October 2026 β€” mwah, catch you on the next one bestie πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from