From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754526Ab2IOCHp (ORCPT ); Fri, 14 Sep 2012 22:07:45 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:43638 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592Ab2IOCHo convert rfc822-to-8bit (ORCPT ); Fri, 14 Sep 2012 22:07:44 -0400 MIME-Version: 1.0 In-Reply-To: <20120915015703.GR13973@ZenIV.linux.org.uk> References: <20120915015703.GR13973@ZenIV.linux.org.uk> Date: Fri, 14 Sep 2012 19:07:43 -0700 Message-ID: Subject: Re: Getting debugfs mountpoint? From: Jacob Sowles To: Al Viro Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Jacob On Fri, Sep 14, 2012 at 6:57 PM, Al Viro wrote: > On Fri, Sep 14, 2012 at 06:49:01PM -0700, Jacob Sowles wrote: >> Is there an easy way to get the path to where debugfs is mounted? I >> found a function called debugfs_find_mountpoint(), which is exactly >> what I want, but it’s not exported, so I can’t use it. The only >> exported debugfs functions that I could find are the ones that create, >> remove, etc. > > More to the point, it's a userland function. Why would you want that > kernel-side?