get_leaf_nr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ get_leaf_nr(9) ✨

okay bestie, welcome to the <pink>get_leaf_nr</pink> page of the Kernel API Manual πŸ’… this one's a little function from the GFS2 crew and honestly it's giving "small but crucial" energy.


🌸 NAME 🌸

get_leaf_nr β€” get a leaf number associated with the index πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

int get_leaf_nr (struct gfs2_inode *dip , u32 index , u64 *leaf_out );

πŸŽ€ ARGUMENTS πŸŽ€

  • dip β€” the GFS2 inode, aka the main character of this operation 🫢
  • index β€” hash table index of the targeted leaf, like the coordinate of the leaf you're hunting for πŸ”
  • leaf_out β€” the resulting leaf block number lands here, that's your output slot ✨

⭐ RETURN ⭐

Returns 0 on success, and an error code otherwise β€” so like, if it's not 0, something went sideways, no cap 😭

🌈 SEE ALSO 🌈

Kernel file ./fs/gfs2/dir.c and its whole friend group:


and that's the whole vibe check, bestie πŸ’– this page lives in ./fs/gfs2, dated October 2026, and it's literally titled get_leaf_nr(9) β€” slay, go read the source, periodt πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from