__d_path(9)
π __d_path(9) β like, the Kernel API Manual page, bestie
okay so welcome to the __d_path(9) glow-up β¨ this is the Kernel API Manual entry and it's literally about turning a dentry into a path name, no cap.
π¦ SYNOPSIS
char * __d_path (const struct path *path , const struct path *root ,
char *buf , int buflen );
that's the whole signature, character for character, don't @ me π
πΈ ARGUMENTS
pathβ the dentry/vfsmount you wanna report on π like the thing we're describingrootβ the root vfsmnt/dentry, aka where we start looking frombufβ the buffer where the return value goes π it's giving "put the answer here"buflenβ how long that buffer is, in case you were wondering π
β¨ DESCRIPTION β¨
so basically: convert a dentry into an ASCII path name. that's the whole vibe. π«Ά
it returns a pointer into the buffer β or, plot twist π, an error code if the path was too long.
"buflen" should be positive. like, highkey a requirement, don't be weird about it.
and if the path is not reachable from the supplied root, it returns NULL. that's it. that's the tea. β no path for you, bestie.
real talk: those NULL and error-code returns are the whole personality of this function β check them, or you're gonna have a bad time π
β SEE ALSO
- Kernel file
./fs/d_path.c prepend_name(9)prepend_path(9)d_path(9)
go read those too, iykyk π§
and that's the page!! π brought to you by ./fs and dated October 2026 β mwah, stan the kernel, see u in the next manpage ππ
π¦ 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