gfs2_dump_glock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 gfs2_dump_glock(9) β€” like, the Kernel API Manual page for gfs2_dump_glock πŸ’…

okay bestie so this is gfs2_dump_glock(9) from the Kernel API Manual, and it does exactly one iconic little thing: it prints info about a glock. that's it. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

gfs2_dump_glock β€” print information about a glock

like literally, that's her job. printing glock info. no notes. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

void gfs2_dump_glock (struct seq_file *seq , struct gfs2_glock *gl ,
bool fsid );

she takes three things and returns nothing (void, my beloved lowkey-underrated return type) πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • seq β€” The seq_file struct. this is where the output goes, bestie β€” it's the whole stage 🎭
  • gl β€” the glock. the main character, fr fr πŸ’«
  • fsid β€” If true, also dump the file system id. yes, it's a bool. no, you can't be normal about it. πŸ™ˆ

🌈 DESCRIPTION 🌈

so the file format is giving very specific, and here's how it works, no cap:

One line per object, and capital letters are used to indicate objects β€” memorize these, there will be a quiz:

  • G = glock
  • I = Inode
  • R = rgrp
  • H = holder

Glocks are not indented. everybody else? indented by a single space, and they follow the glock to which they are related. it's giving little ducklings following mama glock πŸ¦†πŸ¦†

Fields are indicated by lower case letters followed by a colon and then the field value β€” except for strings, which are in [] so that it's possible to see if they are composed of spaces for example. string disclosure, we love to see it ✨

and the fields are:

  • n = number (id of the object)
  • f = flags
  • t = type
  • s = state
  • r = refcount
  • e = error
  • p = pid

that's the whole legend. screenshot it. πŸ“


πŸ’– SEE ALSO πŸ’–

Kernel file ./fs/gfs2/glock.c β€” and honestly the whole friend group showed up for this one, so:

like i said. the entire group chat pulled up. πŸ”₯


and that's the page, bestie!! πŸ’œ sign-off time: this one lives in ./fs/gfs2, it's dated October 2026, and she goes by gfs2_dump_glock(9). periodt. πŸŽ€β­

πŸ“¦ where this page comes from