OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man2 / lookup_dcookie.2
1 .\" Copyright (C) 2003 John Levon <levon@movementarian.org>
2 .\"
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.
7 .\"
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.
12 .\"
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
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified 2004-06-17 Michael Kerrisk <mtk.manpages@gmail.com>
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .\"
33 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
34 .\"         all rights reserved.
35 .\" Translated 2003-06-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
36 .\" Updated 2003-09-30, Akihiro MOTOKI
37 .\" Updated 2005-02-10, Akihiro MOTOKI
38 .\"
39 .TH LOOKUP_DCOOKIE 2 2004\-06\-17 Linux "Linux Programmer's Manual"
40 .SH 名前
41 lookup_dcookie \- ディレクトリエントリーのパス名を返す
42 .SH 書式
43 \fBint lookup_dcookie(u64 \fP\fIcookie\fP\fB, char *\fP\fIbuffer\fP\fB, size_t
44 \fP\fIlen\fP\fB);\fP
45 .SH 説明
46 \fIcookie\fP 値で指定されたディレクトリエントリーのフルパス名を検索する。 cookie は、個々のディレクトリエントリーを区別する内部識別子
47 (opaque identifier) である。引き数で指定されたバッファーに、ディレクトリエントリーの フルパス名が格納される。
48
49 \fBlookup_dcookie\fP()  が正常に値を返すためには、カーネルがディレクトリエントリーへの cookie 参照を
50 保持していなければならない。
51 .SH 返り値
52 成功した場合、 \fBlookup_dcookie\fP()  はバッファーにコピーしたパス文字列の長さを返す。 エラーの場合は \-1 を返し、
53 \fIerrno\fP に適切な値を設定する。
54 .SH エラー
55 .TP 
56 \fBEFAULT\fP
57 バッファーが有効でなかった。
58 .TP 
59 \fBEINVAL\fP
60 検索が行われた時、cookie とディレクトリエントリーのマッピングがカーネルに 登録されていなかったか、または cookie
61 が有効なディレクトリエントリーを 参照していない。
62 .TP 
63 \fBENAMETOOLONG\fP
64 名前がバッファーに入り切らなかった。
65 .TP 
66 \fBENOMEM\fP
67 カーネルが、パス名を保持する一時バッファー用のメモリーを割り当てることが できなかった。
68 .TP 
69 \fBEPERM\fP
70 プロセスが cookie 値を検索するのに必要なケーパビリティ \fBCAP_SYS_ADMIN\fP を持っていない。
71 .TP 
72 \fBERANGE\fP
73 バッファーが、ディレクトリエントリーのパス名を収容するのに 十分な大きさではなかった。
74 .SH バージョン
75 Linux 2.5.43 以降で利用できる。 エラー \fBENAMETOOLONG\fP を返す仕様は 2.5.70 で追加された。
76 .SH 準拠
77 \fBlookup_dcookie\fP()  は Linux 独自の関数である。
78 .SH 注意
79 \fBlookup_dcookie\fP()  は特殊な用途に使われるシステムコールで、現在のところ oprofile profiler で
80 使われているだけである。
81
82 指定されたディレクトリエントリーが削除されていた場合、返されるパス名の最後に " (deleted)" という文字列が付加されることがある。
83 .SH この文書について
84 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
85 である。プロジェクトの説明とバグ報告に関する情報は
86 http://www.kernel.org/doc/man\-pages/ に書かれている。