1 .\" Copyright (C) 2003 John Levon <levon@movementarian.org>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Modified 2004-06-17 Michael Kerrisk <mtk.manpages@gmail.com>
27 .TH LOOKUP_DCOOKIE 2 2016-07-17 "Linux" "Linux Programmer's Manual"
29 lookup_dcookie \- return a directory entry's path
31 .BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len );
33 Look up the full path of the directory entry specified by the value
35 The cookie is an opaque identifier uniquely identifying a particular
37 The buffer given is filled in with the full path of the directory entry.
41 to return successfully,
42 the kernel must still hold a cookie reference to the directory entry.
46 returns the length of the path string copied into the buffer.
47 On error, \-1 is returned, and
53 The buffer was not valid.
56 The kernel has no registered cookie/directory entry mappings at the
57 time of lookup, or the cookie does not refer to a valid directory entry.
60 The name could not fit in the buffer.
63 The kernel could not allocate memory for the temporary buffer holding
67 The process does not have the capability
69 required to look up cookie values.
72 The buffer was not large enough to hold the path of the directory entry.
74 Available since Linux 2.5.43.
77 error return was added in 2.5.70.
83 is a special-purpose system call, currently used only by the
86 It relies on a kernel driver to register cookies for directory entries.
88 The path returned may be suffixed by the string " (deleted)" if the directory
89 entry has been removed.