vfs_statx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the STATX_xxx flags 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 🌈


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