i_uid_needs_update(9)
π i_uid_needs_update(9) π
okay so bestie, welcome to the Kernel API Manual entry for i_uid_needs_update β yes that's the function name, and yes it's a whole manual page about one (1) little bool. main character energy fr fr.
β¨ NAME β¨
i_uid_needs_update β literally just checks whether an inode's i_uid needs to be updated π«Ά that's it, that's the job.
πΈ SYNOPSIS πΈ
bool i_uid_needs_update (struct mnt_idmap *idmap , const struct iattr
*attr , const struct inode *inode );
it returns a bool, it takes three things, and honestly? iconic.
π ARGUMENTS π
idmapβ the idmap of the mount the inode was found from. yes, that mount's idmap, bestie, don't mix them up πattrβ the new attributes of the inode. the fresh fit it's trying on πinodeβ the inode to update. the one we're doing the vibe check on.
π¦ DESCRIPTION π¦
so here's the tea: this checks whether the $inode's i_uid field needs to be updated, and it does that taking idmapped mounts into account if the filesystem supports it β¨ lowkey important detail, highkey the whole point.
no cap, that's the entire description. short and slay. periodt.
π RETURN π
trueβ if the inode'si_uidfield needs to be updated πfalseβ if not π
binary. simple. we love a decisive king.
β SEE ALSO β
the whole friend group, assembled π«Ά and ngl, it's a long group chat β every single one of these:
Kernel file ./include/linux/fs.henum positive_aop_returns(9)struct address_space(9)struct file_ra_state(9)struct file(9)i_uid_into_vfsuid(9)i_uid_update(9)i_gid_into_vfsgid(9)i_gid_needs_update(9)i_gid_update(9)inode_fsuid_set(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)
like I said. the whole squad. iykyk π
ok that's the page!! this icon lives over in ./include/linux and the version stamp on this beauty is October 2026 β go off, calendar. mwah π
β¨π
π¦ 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