inode_fsgid_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… inode_fsgid_set(9) β€” kernel API manual, but make it make sense πŸŽ€

okay bestie, welcome to the Kernel API Manual ✨ this one's called inode_fsgid_set and it's a lil function that's genuinely so simple you'll be like "wait that's it??" β€” but that's the vibe, we love a low-effort icon πŸ’–


✨ NAME ✨

inode_fsgid_set β€” initialize inode's i_gid field with the caller's fsgid 🫢


🌸 SYNOPSIS 🌸

void inode_fsgid_set (struct inode *inode , struct mnt_idmap *idmap );

like, two args, no return value (void, she gives nothing back, she's just here to do the thing) πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” the inode to initialize, aka the main character of this whole operation πŸ‘‘
  • idmap β€” the idmap of the mount the inode was found from, aka the mapping receipts 🧾

πŸ’œ DESCRIPTION πŸ’œ

so the whole job is: initialize the i_gid field of inode. that's it. that's the post πŸ“Œ

and here's the cute part β€” if the inode was found/created via an idmapped mount, you map the caller's fsgid according to idmap. so the group id you end up with is properly translated for that mount's mapping ✨ no cap, that's the entire description, she's short and she knows it πŸ“


πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where the manpage absolutely ate and left zero crumbs β€” here's the full squad, all 28 of them, no skipping, we don't do that here πŸ’€

like, that's a whole friend group 😭 go read them, iykyk 🧚


ok quick note bestie: inode_fsgid_set is the gid one β€” don't mix her up with inode_fsuid_set up there in the see-also, that's the uid twin. different function, different field, same energy πŸ™ˆ

🌈 sign-off 🌈

that's the whole page! it lives in ./include/linux, this particular printing is dated October 2026, and it ships with the Kernel API Manual β€” mwah, go initialize some inodes responsibly πŸ’–βœ¨πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from