ksmbd_vfs_kern_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksmbd_vfs_kern_path(9) πŸ’…

okay so bestie, this is the ksmbd_vfs_kern_path(9) page from the Kernel API Manual, and it's lowkey iconic. It's a little lookup function with big "do not assume too much" energy. It ate. Let's get into it. 🫢✨

πŸŽ€ NAME πŸŽ€

ksmbd_vfs_kern_path β€” lookup a file and get path info. That's the name, that's the job, slay, no cap.

✨ SYNOPSIS ✨

int ksmbd_vfs_kern_path (struct ksmbd_work *work , char *filepath ,
       unsigned int flags , struct path *path , bool caseless );

πŸ’– ARGUMENTS πŸ’–

  • work β€” work. That's literally the whole description, and I respect the minimalism. πŸ’…
  • filepath β€” the file path that is relative to share. The docs say relative to share, so keep that in mind, bestie.
  • flags β€” lookup flags.
  • path β€” if lookup succeed, return path info. So when the lookup works, the path info comes back here. ✨
  • caseless β€” caseless filename lookup.

πŸ¦‹ DESCRIPTION πŸ¦‹

It performs the lookup, possibly crossing over any mount point. So yeah, it may hop across mount points while it's doing its thing.

On return, no locks will be held, and write-access to filesystem won't have been checked. That's the important caveat, bestie β€” don't assume write access got cleared, because it literally was not checked. πŸ’€

🌈 RETURN 🌈

0 if file was found, otherwise error. Found = 0; anything else = error. Periodt. πŸ‘‘

πŸ“ SEE ALSO πŸ“


mwah πŸ’‹ signing off from source ./fs/smb/server, with the Kernel API Manual vibe and date October 2026. ksmbd_vfs_kern_path(9) out. πŸ’–βœ¨

πŸ“¦ where this page comes from