1D_PATH(9)                        The Linux VFS                       D_PATH(9)
2
3
4

NAME

6       d_path - return the path of a dentry
7

SYNOPSIS

9       char * d_path(const struct path * path, char * buf, int buflen);
10

ARGUMENTS

12       path
13           path to report
14
15       buf
16           buffer to return value in
17
18       buflen
19           buffer length
20

DESCRIPTION

22       Convert a dentry into an ASCII path name. If the entry has been deleted
23       the string “ (deleted)” is appended. Note that this is ambiguous.
24
25       Returns a pointer into the buffer or an error code if the path was too
26       long. Note: Callers should use the returned pointer, not the passed in
27       buffer, to use the name! The implementation often starts at an offset
28       into the buffer, and may leave 0 bytes at the start.
29
30       “buflen” should be positive.
31
33Kernel Hackers Manual 2.6.         June 2019                         D_PATH(9)
Impressum