vfs_path_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so we’re in the Kernel API Manual, and this page is vfs_path_lookup(9) β€” the function that looks up a file path relative to a dentry-vfsmount pair. that’s the whole assignment, bestie 🫢

✨ SYNOPSIS ✨

int vfs_path_lookup (struct dentry *dentry , struct vfsmount *mnt ,
       const char *name , unsigned int flags , struct path *path );

the spacing is giving exactly-as-written, and we respect it πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • dentry β€” pointer to dentry of the base directory; the base-directory starting point, iykyk πŸŽ€
  • mnt β€” pointer to vfs mount of the base directory; it pairs with dentry, no cap
  • name β€” pointer to file name; the name being looked up, periodt
  • flags β€” lookup flags; these are the lookup flags, full stop
  • path β€” pointer to struct path to fill; this is the output baddie that gets filled in ✨

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./fs/namei.c is the source-file main character here, and this is the whole friend group it brings along:

and that’s the tea β˜• β€” source/version: ./fs, date: October 2026. now go look up some paths and slay, bestie πŸ’…πŸŒˆβœ¨

πŸ“¦ where this page comes from