From: Greg KH <greg@kroah.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: renaming in debugfs?
Date: Thu, 15 Feb 2007 14:40:57 -0800 [thread overview]
Message-ID: <20070215224057.GA20464@kroah.com> (raw)
In-Reply-To: <1171540374.20204.2.camel@johannes.berg>
On Thu, Feb 15, 2007 at 12:52:53PM +0100, Johannes Berg wrote:
> For the wiphy stuff I wanted to provide a debugfs as well as a sysfs dir
> for drivers (or the d80211 stack).
>
> But then I decided that stable wiphy names will be a good thing instead
> of just numbering them wiphy%d. Does anyone have any idea how to rename
> directories in debugfs? I guess that for sysfs it'll just work if I
> change the kobject name, but maybe that's wrong too?
No, use kobject_rename() if you want to rename a kobject in sysfs (or
the real device_rename() call if you have a struct device).
For debugfs, there is no rename function yet, but it would be pretty
trivial to add one if you wish.
thanks,
greg k-h
next prev parent reply other threads:[~2007-02-15 22:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-15 11:52 renaming in debugfs? Johannes Berg
2007-02-15 22:40 ` Greg KH [this message]
2007-02-16 9:18 ` Johannes Berg
2007-03-02 12:37 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070215224057.GA20464@kroah.com \
--to=greg@kroah.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox