ksmbd_vfs_lookup_in_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ksmbd_vfs_lookup_in_dir(9) ✨

okay bestie, settle in πŸ’– this one's a page from the Kernel API Manual and it's literally all about ksmbd_vfs_lookup_in_dir β€” the girl whose whole job is finding a file inside a directory πŸŽ€


πŸ’… NAME

ksmbd_vfs_lookup_in_dir β€” lookup a file in a directory πŸ¦‹

Like, that's it. That's the whole gig. She looks. She finds. She slays. ✨


🌸 SYNOPSIS

int ksmbd_vfs_lookup_in_dir (const struct path *dir , char *name ,
       size_t namelen , struct unicode_map *um );

yes the signature is giving "spread across two lines for the aesthetic" and honestly? iconic 🫢 copy it exactly, no cap.


πŸ‘‘ ARGUMENTS

  • dir β€” the path info, aka where the vibe check happens. This is the directory she's snooping around in πŸ’…
  • name β€” the filename to look up. the one she's searching for, main character energy 🌟
  • namelen β€” the filename length. gotta tell her how much of name actually counts, fr fr
  • um β€” the struct unicode_map to use. yes, unicode mapping matters, iykyk 🌈

πŸ”₯ RETURN

0 on success β€” otherwise, an error 😭 that's the whole contract bestie, no plot twist.


πŸ¦‹ SEE ALSO

Kernel file ./fs/smb/server/vfs.c β€” go read her whole friend group, they're all linked up πŸ’œ:

the whole squad, assembled πŸ§šβ€β™€οΈπŸ’«


lowkey reminder: she returns 0 on success and an error otherwise β€” that's the return contract, so don't go inventing extra success codes, bestie πŸ™ˆ

alright that's the page πŸ’– this little gem lives over in ./fs/smb/server, dated October 2026, and it's filed under Kernel API Manual β€” ksmbd_vfs_lookup_in_dir(9) ate and left absolutely no crumbs πŸ‘‘βœ¨πŸ“

πŸ“¦ where this page comes from