gfs2_exchange(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« gfs2_exchange(9) πŸ’«

okay so this is a page from the Kernel API Manual β€” it's gfs2_exchange(9), and bestie, it's literally the function that swaps two files around. icon behavior only. 🫢


✨ NAME ✨

gfs2_exchange β€” exchange two files πŸ”


🌸 SYNOPSIS 🌸

int gfs2_exchange (struct inode *odir , struct dentry *odentry , struct
inode *ndir , struct dentry *ndentry , unsigned int flags );

like, five args, one int coming back at you. classic. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • odir β€” the parent directory of the old file name πŸ—‚οΈ
  • odentry β€” the old dentry of the file, aka the original one
  • ndir β€” the parent directory of the new file name πŸ“
  • ndentry β€” the new dentry of the file
  • flags β€” the rename flags 🚩 (yes, rename flags, that's the vibe)

πŸ¦‹ RETURN πŸ¦‹

errno β€” that's it, that's the return. no cap. ✨


🌈 SEE ALSO 🌈

Kernel file ./fs/gfs2/inode.c β€” plus the whole friend group:


and that's the whole page, bestie, we ate and left zero crumbs πŸ’– source lives at ./fs/gfs2, this one's dated October 2026, and the page itself is gfs2_exchange(9) β€” periodt. πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from