From: UZAIR LAKHANI Subject: getting file pointer from dentry/inode Date: Thu, 4 May 2006 02:45:13 -0700 (PDT) Message-ID: <20060504094513.75349.qmail@web37901.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from web37901.mail.mud.yahoo.com ([209.191.124.96]:60793 "HELO web37901.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S1751469AbWEDJpO (ORCPT ); Thu, 4 May 2006 05:45:14 -0400 To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello All, I want to find out how the file pointer from inode/dentry can be get. For example we can get inode pointer by using iget. In the struct file we can get inode/dentry (filp->f_dentry->d_inode) but how can we reversely get the struct file pointer from dentry/inode etc. Secondly is this logically correct to get the file pointer from inode/dentry etc. Thanks, Uzair Lakhnai __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com