From: "Xin Zhao" <uszhaoxin@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: How Linux /proc filesystem convert a fd to the actual pathname?
Date: Mon, 20 Aug 2007 22:58:26 -0400 [thread overview]
Message-ID: <4ae3c140708201958x3c88b317o2ba9be64177978f5@mail.gmail.com> (raw)
Hi,
In the Linux proc filesystem, /proc/[pid]/fd is a link to the
actually the actual pathname of the opened file.
I am curious how Linux convert an fd to the pathname? Does it
recursively walk back from current dentry to the root?
Can someone point me to the right place in the kernel where this
functionality is implemented?
Many thanks in advance!
-x
next reply other threads:[~2007-08-21 2:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 2:58 Xin Zhao [this message]
2007-08-21 5:32 ` How Linux /proc filesystem convert a fd to the actual pathname? Jan Engelhardt
2007-08-21 6:03 ` Kevin Hao
2007-08-21 6:41 ` Xin Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ae3c140708201958x3c88b317o2ba9be64177978f5@mail.gmail.com \
--to=uszhaoxin@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).