__gfs2_iomap_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Bestie, welcome to __gfs2_iomap_get(9) in the Kernel API Manual πŸ’– This is the page about mapping blocks from an inode to disk blocks, and it is lowkey iconic. Let’s go ✨

🌸 NAME 🌸

__gfs2_iomap_get β€” Map blocks from an inode to disk blocks πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

Okay so the signature is right here, no cap:

       int __gfs2_iomap_get (struct inode *inode , loff_t pos , loff_t length ,
       unsigned flags , struct iomap *iomap , struct metapath *mp );

πŸ¦‹ ARGUMENTS πŸ¦‹

Here’s the cast of characters, bestie:

  • inode β€” The inode πŸ’–
  • pos β€” Starting position in bytes πŸ“
  • length β€” Length to map, in bytes πŸ“
  • flags β€” iomap flags 🚩
  • iomap β€” The iomap structure πŸ—ΊοΈ
  • mp β€” The metapath 🧚

🌈 RETURN 🌈

It returns errno. That’s the return vibe, periodt 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/gfs2/bmap.c has the whole friend group:


That’s the whole page, bestie 🫢 Source/version ./fs/gfs2, date October 2026, title __gfs2_iomap_get(9) β€” slay and goodbye πŸ’…βœ¨

πŸ“¦ where this page comes from