inode_fsuid_set(9)
π inode_fsuid_set(9) β like, the Kernel API Manual page you didn't know you needed π
okay so bestie, welcome to the Kernel API Manual entry for inode_fsuid_set(9) β she's a tiny function with main character energy and she's literally about to make your inode's i_uid field make sense. no cap. β¨
πΈ NAME πΈ
inode_fsuid_set β initializes the inode's i_uid field with the caller's fsuid π
β SYNOPSIS β
void inode_fsuid_set (struct inode *inode , struct mnt_idmap *idmap );
she takes two args and returns void, periodt. π«Ά
π¦ ARGUMENTS π¦
inodeβ the inode you're initializing, bestie. that's the whole vibe check. πidmapβ the idmap of the mount that the inode was found from. iykyk. π
π DESCRIPTION π
so here's the tea π: inode_fsuid_set initializes the i_uid field of inode. that's it, that's the job, and she does it flawlessly.
but wait, there's a plot twist π β if the inode was found/created via an idmapped mount, she maps the caller's fsuid according to idmap. so the mapping is not optional, it's giving "context-sensitive icon" behavior and honestly? we love that for her. π₯
π§ SEE ALSO π§
like, go read these next, fr fr β they're all in the same friend group π:
- 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_fsgid_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)
bestie that's a LOT of cross-references and every single one of them is here on purpose β don't skip, they're all canon. π
π sign-off π
this little masterpiece lives under ./include/linux, and she was dated October 2026 β so yeah, she's from the future and she still ate. π
β¨ bye bestie, 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