All of lore.kernel.org
 help / color / mirror / Atom feed
* renaming in debugfs?
@ 2007-02-15 11:52 Johannes Berg
  2007-02-15 22:40 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2007-02-15 11:52 UTC (permalink / raw)
  To: linux-wireless; +Cc: Greg KH

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

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?

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: renaming in debugfs?
  2007-02-15 11:52 renaming in debugfs? Johannes Berg
@ 2007-02-15 22:40 ` Greg KH
  2007-02-16  9:18   ` Johannes Berg
  2007-03-02 12:37   ` Johannes Berg
  0 siblings, 2 replies; 4+ messages in thread
From: Greg KH @ 2007-02-15 22:40 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: renaming in debugfs?
  2007-02-15 22:40 ` Greg KH
@ 2007-02-16  9:18   ` Johannes Berg
  2007-03-02 12:37   ` Johannes Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-02-16  9:18 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

On Thu, 2007-02-15 at 14:40 -0800, Greg KH wrote:
> 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).

Ok.

> For debugfs, there is no rename function yet, but it would be pretty
> trivial to add one if you wish.

Alright, when I get around to actually doing renaming in cfg80211 (it's
not really high priority right now) it I'll check out how it would be
done.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: renaming in debugfs?
  2007-02-15 22:40 ` Greg KH
  2007-02-16  9:18   ` Johannes Berg
@ 2007-03-02 12:37   ` Johannes Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-03-02 12:37 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

On Thu, 2007-02-15 at 14:40 -0800, Greg KH wrote:

> For debugfs, there is no rename function yet, but it would be pretty
> trivial to add one if you wish.

I tried to, but failed.
http://johannes.sipsolutions.net/patches/debugfs-rename.patch

does absolutely nothing at all, not even return an error! What am I
doing wrong? :)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-02 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15 11:52 renaming in debugfs? Johannes Berg
2007-02-15 22:40 ` Greg KH
2007-02-16  9:18   ` Johannes Berg
2007-03-02 12:37   ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.