from_vfsgid(9)
πΈ from_vfsgid(9) β Kernel API Manual πΈ
okay bestie, welcome to the from_vfsgid(9) glow-up β¨ this is a kernel API page, and weβre gonna keep every detail cute and correct. π
π NAME π
from_vfsgid β map a vfsgid into the filesystem idmapping.
β¨ SYNOPSIS β¨
hereβs the signature, verbatim, bestie:
kgid_t from_vfsgid (struct mnt_idmap *idmap , struct user_namespace
*fs_userns , vfsgid_t vfsgid );
π¦ ARGUMENTS π¦
idmapβ the mount's idmapping.fs_usernsβ the filesystem's idmapping.vfsgidβ thevfsgidto be mapped.
π DESCRIPTION π
Map vfsgid into the filesystem idmapping. This function has to be used in order to e.g. write vfsgid to inode->i_gid. Like, thatβs the assignment, and it ate. π₯
bestie note: the page literally says has to be used for that inode->i_gid write β so yeah, itβs required, no cap.
π RETURN π
vfsgid mapped into the filesystem idmapping. Thatβs the return value, babes. π«Ά
π SEE ALSO π
- Kernel file
./fs/mnt_idmapping.c initial_idmapping(9)make_vfsuid(9)make_vfsgid(9)from_vfsuid(9)vfsgid_in_group_p(9)mnt_idmap_get(9)mnt_idmap_put(9)
mwah π source/version: ./fs Β· date: October 2026 β periodt, thatβs the whole page, bestie π
π¦ 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