vfs_statx(9)
π vfs_statx(9) β Kernel API Manual β¨
π NAME π
vfs_statx β bestie, this one gets you the basic attributes and the extra ones by filename πβ¨
πΈ SYNOPSIS πΈ
int vfs_statx (int dfd , struct filename *filename , int flags , struct kstat *stat , u32 request_mask );
π¦ ARGUMENTS π¦
dfdβ a file descriptor thatβs the base dir for a relative filename ποΈfilenameβ the name of the file of interest, aka the main character πflagsβ the flags that control the query ποΈstatβ the result structure you fill in, periodt πrequest_maskβ theSTATX_xxxflags that show what the caller wants πββοΈ
π DESCRIPTION π
okay so listen: this function is literally a wrapper around vfs_getattr. the main difference? it uses a filename and a base directory to figure out where the file is at π΅οΈββοΈβ¨
also, the way that AT_SYMLINK_NOFOLLOW works inside flags β it prevents a symlink at the given name from being referenced. no cap, thatβs the whole vibe π«π
0 gets returned on success, and a -ve error code if itβs unsuccessful π thatβs the tea.
π SEE ALSO π
- Kernel file
./fs/stat.c fill_mg_cmtime(9)generic_fillattr(9)generic_fill_statx_attr(9)generic_fill_statx_atomic_writes(9)vfs_getattr_nosec(9)vfs_fstat(9)sys_statx(9)
okurrr thatβs the whole page, bestie π«Ά this little icon lives in ./fs, itβs dated October 2026, and itβs literally vfs_statx(9) β slay ππ
π¦ 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