From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754660Ab2IOCLI (ORCPT ); Fri, 14 Sep 2012 22:11:08 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:54575 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592Ab2IOCLG (ORCPT ); Fri, 14 Sep 2012 22:11:06 -0400 Date: Sat, 15 Sep 2012 03:11:04 +0100 From: Al Viro To: Jacob Sowles Cc: linux-kernel@vger.kernel.org Subject: Re: Getting debugfs mountpoint? Message-ID: <20120915021104.GS13973@ZenIV.linux.org.uk> References: <20120915015703.GR13973@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2012 at 07:07:43PM -0700, Jacob Sowles wrote: > Multiple instances of my code can be run simultaneously, and all > instances use the same debugfs directory, so I need the path to the > debugfs root directory so that I can use filp_open to get the dentry > for that directory. What's wrong with just storing a pointer to that dentry in a variable? And what do you want an opened file (of a directory, at that) on debugfs?