Re: Getting debugfs mountpoint?

From: Rob Landley
Date: Sun Sep 16 2012 - 16:23:06 EST


>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@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/