gfs2_dump_glock(9)
πΈ 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β Theseq_filestruct. this is where the output goes, bestie β it's the whole stage πglβ the glock. the main character, fr fr π«fsidβ Iftrue, also dump the file system id. yes, it's abool. 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= glockI= InodeR= rgrpH= 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= flagst= types= stater= refcounte= errorp= 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:
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_init(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)
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
- 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