Re: Getting debugfs mountpoint?

From: Jacob Sowles
Date: Fri Sep 14 2012 - 22:08:29 EST


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 <viro@xxxxxxxxxxxxxxxxxx> 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?
--
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/