gfs2_getbuf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gfs2_getbuf(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for gfs2_getbuf β€” yes it's a kernel page, yes it's gfs2_getbuf(9), yes you're gonna get it. this one's short and sweet, like a little snack between the big scary glock pages πŸ“


✨ NAME ✨

gfs2_getbuf β€” get a buffer with a given address space ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

struct buffer_head * gfs2_getbuf (struct gfs2_glock *gl , u64 blkno ,
       int create );

that's the whole signature, no cap. it hands you back a struct buffer_head * 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • gl β€” the glock πŸ’…
  • blkno β€” the block number, and it's in filesystem scope (iykyk) πŸ”₯
  • create β€” 1 if the buffer should be created

πŸ‘‘ RETURN πŸ‘‘

the buffer. that's it. that's the return. the buffer ⭐

🌈 SEE ALSO 🌈

kernel file ./fs/gfs2/meta_io.c β€” and yes, the whole friend group is here, go say hi:


and that's the page!! mwah πŸ’‹ this icon lives under ./fs/gfs2, from the October 2026 drop, so go forth and get those buffers bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from