inode_fsgid_set(9)
π 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 π
- Kernel file
./include/linux/fs.h enum positive_aop_returns(9)struct address_space(9)struct file_ra_state(9)struct file(9)i_uid_into_vfsuid(9)i_uid_needs_update(9)i_uid_update(9)i_gid_into_vfsgid(9)i_gid_needs_update(9)i_gid_update(9)inode_fsuid_set(9)fsuidgid_has_mapping(9)inode_set_ctime(9)file_write_started(9)file_write_not_started(9)struct renamedata(9)is_mgtime(9)iput_if_not_last(9)is_idmapped_mnt(9)file_start_write(9)file_end_write(9)kiocb_start_write(9)kiocb_end_write(9)name_is_dot_dotdot(9)name_contains_dotdot(9)inode_dio_begin(9)inode_dio_end(9)generic_ci_validate_strict_name(9)
like, that's a whole friend group π go read them, iykyk π§
ok quick note bestie:inode_fsgid_setis the gid one β don't mix her up withinode_fsuid_setup 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms