.\" Copyright (C) 2003 John Levon .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Modified 2004-06-17 Michael Kerrisk .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2003-06-04, Akihiro MOTOKI .\" Updated 2003-09-30, Akihiro MOTOKI .\" Updated 2005-02-10, Akihiro MOTOKI .\" .TH LOOKUP_DCOOKIE 2 2017\-09\-15 Linux "Linux Programmer's Manual" .SH 名前 lookup_dcookie \- ディレクトリエントリーのパス名を返す .SH 書式 \fBint lookup_dcookie(u64 \fP\fIcookie\fP\fB, char *\fP\fIbuffer\fP\fB, size_t \fP\fIlen\fP\fB);\fP .SH 説明 \fIcookie\fP 値で指定されたディレクトリエントリーのフルパス名を検索する。 cookie は、個々のディレクトリエントリーを区別する内部識別子 (opaque identifier) である。引数で指定されたバッファーに、ディレクトリエントリーの フルパス名が格納される。 .PP \fBlookup_dcookie\fP() が正常に値を返すためには、カーネルがディレクトリエントリーへの cookie 参照を 保持していなければならない。 .SH 返り値 成功した場合、 \fBlookup_dcookie\fP() はバッファーにコピーしたパス文字列の長さを返す。 エラーの場合は \-1 を返し、 \fIerrno\fP に適切な値を設定する。 .SH エラー .TP \fBEFAULT\fP バッファーが有効でなかった。 .TP \fBEINVAL\fP 検索が行われた時、cookie とディレクトリエントリーのマッピングがカーネルに 登録されていなかったか、または cookie が有効なディレクトリエントリーを 参照していない。 .TP \fBENAMETOOLONG\fP 名前がバッファーに入り切らなかった。 .TP \fBENOMEM\fP カーネルが、パス名を保持する一時バッファー用のメモリーを割り当てることが できなかった。 .TP \fBEPERM\fP プロセスが cookie 値を検索するのに必要なケーパビリティ \fBCAP_SYS_ADMIN\fP を持っていない。 .TP \fBERANGE\fP バッファーが、ディレクトリエントリーのパス名を収容するのに 十分な大きさではなかった。 .SH バージョン Linux 2.5.43 以降で利用できる。 エラー \fBENAMETOOLONG\fP を返す仕様は 2.5.70 で追加された。 .SH 準拠 \fBlookup_dcookie\fP() は Linux 独自の関数である。 .SH 注意 \fBlookup_dcookie\fP() は特殊な用途に使われるシステムコールで、現在のところ \fBoprofile\fP(1) profiler で 使われているだけである。 .PP 指定されたディレクトリエントリーが削除されていた場合、返されるパス名の最後に " (deleted)" という文字列が付加されることがある。 .SH 関連項目 \fBoprofile\fP(1) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。