From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755677Ab2IOC1n (ORCPT ); Fri, 14 Sep 2012 22:27:43 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:45117 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753985Ab2IOC1l (ORCPT ); Fri, 14 Sep 2012 22:27:41 -0400 Date: Sat, 15 Sep 2012 03:27:39 +0100 From: Al Viro To: Jacob Sowles Cc: linux-kernel@vger.kernel.org Subject: Re: Getting debugfs mountpoint? Message-ID: <20120915022739.GT13973@ZenIV.linux.org.uk> References: <20120915015703.GR13973@ZenIV.linux.org.uk> <20120915021104.GS13973@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:17:12PM -0700, Jacob Sowles wrote: > The first instance of my code calls debugfs_create_file and stores a > pointer to the dentry of that directory. But when the second instance > calls debugfs_create_file, the function returns NULL because that > directory already exists, so it doesn't return the dentry that I need. ... and? Ever heard of that thing called "global variable"?