OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / lookup_dcookie.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) 2003 John Levon <levon@movementarian.org>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Modified 2004-06-17 Michael Kerrisk <mtk.manpages@gmail.com>
26 .\"
27 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
28 .\"         all rights reserved.
29 .\" Translated, 2003-06-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
30 .\" Updated, 2003-09-30, Akihiro MOTOKI
31 .\" Updated, 2005-02-10, Akihiro MOTOKI
32 .\"
33 .\"WORD:        opaque identifier       ÆâÉô¼±ÊÌ»Ò
34 .\"WORD:        Linux specific          Linux Æȼ«
35 .\"WORD:        capability              ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£
36 .\"
37 .TH LOOKUP_DCOOKIE 2 2004-06-17 "Linux" "Linux Programmer's Manual"
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O lookup_dcookie \- return a directory entry's path
41 lookup_dcookie \- ¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Î¥Ñ¥¹Ì¾¤òÊÖ¤¹
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len );
45 .\"O .SH DESCRIPTION
46 .SH ÀâÌÀ
47 .\"O Look up the full path of the directory entry specified by the value
48 .\"O .I cookie
49 .\"O .
50 .\"O The cookie is an opaque identifier uniquely identifying a particular
51 .\"O directory entry.
52 .\"O The buffer given is filled in with the full path of the directory entry.
53 .I cookie
54 ÃͤǻØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Î¥Õ¥ë¥Ñ¥¹Ì¾¤ò¸¡º÷¤¹¤ë¡£
55 cookie ¤Ï¡¢¸Ä¡¹¤Î¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤ò¶èÊ̤¹¤ëÆâÉô¼±Ê̻Ҡ(opaque
56 identifier) ¤Ç¤¢¤ë¡£°ú¤­¿ô¤Ç»ØÄꤵ¤ì¤¿¥Ð¥Ã¥Õ¥¡¤Ë¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Î
57 ¥Õ¥ë¥Ñ¥¹Ì¾¤¬³ÊǼ¤µ¤ì¤ë¡£
58
59 .\"O For
60 .\"O .BR lookup_dcookie ()
61 .\"O to return successfully,
62 .\"O the kernel must still hold a cookie reference to the directory entry.
63 .BR lookup_dcookie ()
64 ¤¬Àµ¾ï¤ËÃͤòÊÖ¤¹¤¿¤á¤Ë¤Ï¡¢¥«¡¼¥Í¥ë¤¬¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Ø¤Î cookie »²¾È¤ò
65 ÊÝ»ý¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
66 .\"O .SH "RETURN VALUE"
67 .SH ÊÖ¤êÃÍ
68 .\"O On success,
69 .\"O .BR lookup_dcookie ()
70 .\"O returns the length of the path string copied into the buffer.
71 .\"O On error, \-1 is returned, and
72 .\"O .I errno
73 .\"O is set appropriately.
74 À®¸ù¤·¤¿¾ì¹ç¡¢
75 .BR lookup_dcookie ()
76 ¤Ï¥Ð¥Ã¥Õ¥¡¤Ë¥³¥Ô¡¼¤·¤¿¥Ñ¥¹Ê¸»úÎó¤ÎŤµ¤òÊÖ¤¹¡£
77 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤·¡¢
78 .I errno
79 ¤ËŬÀÚ¤ÊÃͤòÀßÄꤹ¤ë¡£
80 .\"O .SH ERRORS
81 .SH ¥¨¥é¡¼
82 .TP
83 .B EFAULT
84 .\"O The buffer was not valid.
85 ¥Ð¥Ã¥Õ¥¡¤¬Í­¸ú¤Ç¤Ê¤«¤Ã¤¿¡£
86 .TP
87 .B EINVAL
88 .\"O The kernel has no registered cookie/directory entry mappings at the
89 .\"O time of lookup, or the cookie does not refer to a valid directory entry.
90 ¸¡º÷¤¬¹Ô¤ï¤ì¤¿»þ¡¢cookie ¤È¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Î¥Þ¥Ã¥Ô¥ó¥°¤¬¥«¡¼¥Í¥ë¤Ë
91 ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¤«¡¢¤Þ¤¿¤Ï cookie ¤¬Í­¸ú¤Ê¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤ò
92 »²¾È¤·¤Æ¤¤¤Ê¤¤¡£
93 .TP
94 .B ENAMETOOLONG
95 .\"O The name could not fit in the buffer.
96 ̾Á°¤¬¥Ð¥Ã¥Õ¥¡¤ËÆþ¤êÀÚ¤é¤Ê¤«¤Ã¤¿¡£
97 .TP
98 .B ENOMEM
99 .\"O The kernel could not allocate memory for the temporary buffer holding
100 .\"O the path.
101 ¥«¡¼¥Í¥ë¤¬¡¢¥Ñ¥¹Ì¾¤òÊÝ»ý¤¹¤ë°ì»þ¥Ð¥Ã¥Õ¥¡ÍѤΥá¥â¥ê¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬
102 ¤Ç¤­¤Ê¤«¤Ã¤¿¡£
103 .TP
104 .B EPERM
105 .\"O The process does not have the capability
106 .\"O .B CAP_SYS_ADMIN
107 .\"O required to look up cookie values.
108 ¥×¥í¥»¥¹¤¬ cookie Ãͤò¸¡º÷¤¹¤ë¤Î¤ËɬÍפʥ±¡¼¥Ñ¥Ó¥ê¥Æ¥£
109 .B CAP_SYS_ADMIN
110 ¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£
111 .TP
112 .B ERANGE
113 .\"O The buffer was not large enough to hold the path of the directory entry.
114 ¥Ð¥Ã¥Õ¥¡¤¬¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Î¥Ñ¥¹Ì¾¤ò¼ýÍƤ¹¤ë¤Î¤Ë
115 ½½Ê¬¤ÊÂ礭¤µ¤Ç¤Ï¤Ê¤«¤Ã¤¿¡£
116 .\"O .SH VERSIONS
117 .\"O Since Linux 2.5.43.
118 .\"O The
119 .\"O .B ENAMETOOLONG
120 .\"O error return was added in 2.5.70.
121 .SH ¥Ð¡¼¥¸¥ç¥ó
122 Linux 2.5.43 °Ê¹ß¤ÇÍøÍѤǤ­¤ë¡£
123 ¥¨¥é¡¼
124 .B ENAMETOOLONG
125 ¤òÊÖ¤¹»ÅÍͤϠ2.5.70 ¤ÇÄɲ䵤줿¡£
126 .\"O .SH "CONFORMING TO"
127 .SH ½àµò
128 .\"O .BR lookup_dcookie ()
129 .\"O is Linux-specific.
130 .BR lookup_dcookie ()
131 ¤Ï Linux Æȼ«¤Î´Ø¿ô¤Ç¤¢¤ë¡£
132 .\"O .SH "NOTES"
133 .SH Ãí°Õ
134 .\"O .BR lookup_dcookie ()
135 .\"O is a special-purpose system call, currently used only by the oprofile profiler.
136 .\"O It relies on a kernel driver to register cookies for directory entries.
137 .BR lookup_dcookie ()
138 ¤ÏÆüì¤ÊÍÑÅӤ˻Ȥï¤ì¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ç¡¢¸½ºß¤Î¤È¤³¤í oprofile profiler ¤Ç
139 »È¤ï¤ì¤Æ¤¤¤ë¤À¤±¤Ç¤¢¤ë¡£
140
141 .\"O The path returned may be suffixed by the string " (deleted)" if the directory
142 .\"O entry has been removed.
143 »ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤¬ºï½ü¤µ¤ì¤Æ¤¤¤¿¾ì¹ç¡¢ÊÖ¤µ¤ì¤ë¥Ñ¥¹Ì¾¤ÎºÇ¸å¤Ë
144 " (deleted)"
145 ¤È¤¤¤¦Ê¸»úÎó¤¬Éղ䵤ì¤ë¤³¤È¤¬¤¢¤ë¡£