gfs2_getbuf(9)
π 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β1if 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:
gfs2_meta_new(9)gfs2_meta_read(9)gfs2_meta_wait(9)gfs2_ail1_wipe(9)gfs2_journal_wipe(9)gfs2_meta_buffer(9)gfs2_meta_ra(9)
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
- 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