From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879Ab2IPUXQ (ORCPT ); Sun, 16 Sep 2012 16:23:16 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:44273 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683Ab2IPUXO convert rfc822-to-8bit (ORCPT ); Sun, 16 Sep 2012 16:23:14 -0400 MIME-Version: 1.0 X-Originating-IP: [72.177.21.136] In-Reply-To: References: Date: Sun, 16 Sep 2012 15:23:12 -0500 Message-ID: Subject: Re: Getting debugfs mountpoint? From: Rob Landley To: Jacob Sowles 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 >>From userspace? Something like: grep " debugfs " /proc/mounts | awk '{print $2}' | xargs echo -e >>From kernel space? There isn't guaranteed to be _one_, you can mount multiple instances of most filesystems, and with container support you can even have multiple debugfs superblocks. Rob On Fri, Sep 14, 2012 at 8:49 PM, 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. > > Jacob > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/