i_uid_into_vfsuid(9)
π
i_uid_into_vfsuid β Kernel API Manual, bestie β¨
okay so picture this: you're deep in Kernel API Manual territory and you need to take an inode's i_uid and map it down according to an idmapping. that's the whole gig. that's the function. let me break it down π«Ά
β¨ NAME β¨
i_uid_into_vfsuid β map an inode's i_uid down according to an idmapping π
πΈ SYNOPSIS πΈ
vfsuid_t i_uid_into_vfsuid (struct mnt_idmap *idmap , const struct inode
*inode );
π ARGUMENTS π
idmapβ the idmap of the mount that the inode was found from. like, which mount are we even talking about, yknow? that one. π«inodeβ the inode we're mapping. the little guy in question. π
π¦ RETURN π¦
you get back the inode's i_uid mapped down according to idmap. slay. π
but listen β if the inode'si_uidhas no mapping, you getINVALID_VFSUIDback instead. no cap, that's the failure mode, so handle it bestie π
π SEE ALSO π
all of these live in the kernel file ./include/linux/fs.h, and honestly it's giving main character energy, so here's the whole squad in order π:
enum positive_aop_returns(9)struct address_space(9)struct file_ra_state(9)struct file(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)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)
okay that's the whole page, you ate that π this one comes to you straight from ./include/linux, dated October 2026, and it's filed under i_uid_into_vfsuid(9) β go forth and map responsibly, ily πβ¨
π¦ 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