Re: debugfs directory structure

Greg KH
2005-01-12T21:47:46Z

On Wed, Jan 12, 2005 at 04:09:45PM -0500, Dave Jones wrote:
> On Wed, Jan 12, 2005 at 12:50:51PM -0800, Roland Dreier wrote:
> > Hi Greg,
> >
> > Now that debugfs is merged into Linus's tree, I'm looking at using it
> > to replace the IPoIB debugging pseudo-filesystem (ipoib_debugfs). Is
> > there any guidance on what the structure of debugfs should look like?
> > Right now I'm planning on putting all the debug info files under an
> > ipoib/ top level directory. Does that sound reasonable?
>
> How about mirroring the toplevel kernel source structure ?
>
> Ie, you'd make drivers/infiniband/ulp/ipoib ?

But who would be in charge of createing the "drivers/" subdirectory?

debugfs can't handle "/" in a directory name, like procfs does.

> It could get ugly quickly without some structure at least to
> the toplevel dir.

I say ipoib/ is fine, remember, this is for debugging stuff, it will
quickly get ugly anyway :)

thanks,

greg k-h