i_gid_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i_gid_update(9)

okay so bestie, welcome to the Kernel API Manual β€” yes, the whole manual, and today's main character is i_gid_update. it lives in section 9, which is the "kernel developer lore" section, iykyk. 🫢


✨ NAME ✨

i_gid_update β€” updates @inode's i_gid field. that's it. that's the whole vibe check. πŸŽ€


🌸 SYNOPSIS 🌸

void i_gid_update (struct mnt_idmap *idmap , const struct iattr *attr ,
struct inode *inode );

literally three args, no return value, no drama. well. some drama, see below. πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • idmap β€” the idmap of the mount this inode was found from. like, which mount's identity-mapping situation are we living in rn πŸ’«
  • attr β€” the new attributes of the inode. the fresh fit it's about to put on ✨
  • inode β€” the inode we're updating. the one getting the glow-up, obviously πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually do? it safely updates the inode's i_gid field, and the whole point β€” the reason this function exists and you shouldn't just poke the field yourself, bestie, i'm begging β€” is that it translates the vfsgid of any idmapped mount into the filesystem's kgid. πŸ”₯

lowkey that translation is the entire personality of this function. mount-side id vs filesystem-side id, and this is the lil fairy 🧚 that carries the value across the bridge. no cap.

don't skip the "safely" part of the description. the safety is the feature. πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

like, the entire friend group, fr fr. all of these are kernel-file ./include/linux/fs.h besties:

like i said. the whole group chat. πŸ’…


and that's the page!! πŸ“ this gem ships from source path ./include/linux, dated October 2026, and it goes out to every i_gid_update(9) stan. slay, stay safe, and always translate your vfsgid πŸ’–πŸŒˆ

πŸ“¦ where this page comes from