Messages in this thread | | | Date | Sun, 16 Sep 2012 15:23:12 -0500 | Subject | Re: Getting debugfs mountpoint? | From | Rob Landley <> |
| |
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 <sowlesj@gmail.com> 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/ -- 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/
| |