On Tue, Sep 26, 2006 at 09:24:15AM -0400, Dmitry Torokhov wrote: > On 9/26/06, Greg KH <[email protected]> wrote: > >From: Greg Kroah-Hartman <[email protected]> > > > >This change creates a devices/virtual/CLASS_NAME tree for struct devices > >that belong to a class, yet do not have a "real" struct device for a > >parent. It automatically creates the directories on the fly as needed. > > > > Why do you need multiple virtual devices? All parentless class devices > could grow from a single virtual device. They could, but it's a mess of a single directory if you do that. Having /sys/devices/virtual/tty/ as a place for all tty virtual device is nicer than /sys/devices/virtual/ as a single place for all of them (mem, network, tty, misc, etc.) thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 30/47] Driver core: create devices/virtual/ tree
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH 30/47] Driver core: create devices/virtual/ tree
- References:
- [PATCH 22/47] PM: no suspend_prepare() phase
- From: Greg KH <[email protected]>
- [PATCH 23/47] PM: add /sys/power documentation to Documentation/ABI
- From: Greg KH <[email protected]>
- [PATCH 24/47] PM: device_suspend/resume may sleep
- From: Greg KH <[email protected]>
- [PATCH 25/47] PM: platform_bus and late_suspend/early_resume
- From: Greg KH <[email protected]>
- [PATCH 26/47] Driver core: add groups support to struct device
- From: Greg KH <[email protected]>
- [PATCH 27/47] Driver core: allow devices in classes to have no parent
- From: Greg KH <[email protected]>
- [PATCH 28/47] Driver core: add ability for classes to handle devices properly
- From: Greg KH <[email protected]>
- [PATCH 29/47] Driver core: add device_rename function
- From: Greg KH <[email protected]>
- [PATCH 30/47] Driver core: create devices/virtual/ tree
- From: Greg KH <[email protected]>
- Re: [PATCH 30/47] Driver core: create devices/virtual/ tree
- From: "Dmitry Torokhov" <[email protected]>
- [PATCH 22/47] PM: no suspend_prepare() phase
- Prev by Date: Re: Subject: [PATCH] Advertise PPPoE MTU (resubmit).
- Next by Date: Re: [PATCH 26/47] Driver core: add groups support to struct device
- Previous by thread: Re: [PATCH 30/47] Driver core: create devices/virtual/ tree
- Next by thread: Re: [PATCH 30/47] Driver core: create devices/virtual/ tree
- Index(es):