Re: driver model, duplicate names question

2013-07-17 Thread Srinivas Pandruvada
On 07/17/2013 11:31 AM, Greg KH wrote: On Wed, Jul 17, 2013 at 11:09:44AM -0700, Srinivas Pandruvada wrote: But thermal devices are not "real" at all. There are just a number of "cooling devices" on a virtual bus and not attached to any type of a real device at all. There's also no hierarchy t

Re: driver model, duplicate names question

2013-07-17 Thread Greg KH
On Wed, Jul 17, 2013 at 11:09:44AM -0700, Srinivas Pandruvada wrote: > > But thermal devices are not "real" at all. There are just a number of > > "cooling devices" on a virtual bus and not attached to any type of a > > real device at all. > > > > There's also no hierarchy that I can see with the

Re: driver model, duplicate names question

2013-07-17 Thread Srinivas Pandruvada
On 07/16/2013 12:32 PM, Greg KH wrote: On Tue, Jul 16, 2013 at 12:33:03PM -0700, Srinivas Pandruvada wrote: +Example Sys-FS Interface + +/sys/class/power_cap/intel-rapl +├── package-0 +│ ├── constraint-0 +│ │ ├── name +│ │ ├── power_limit_uw +│ │ └── time_window_us +│ ├── constra

Re: driver model, duplicate names question

2013-07-17 Thread Greg KH
On Wed, Jul 17, 2013 at 10:50:19AM -0700, Srinivas Pandruvada wrote: > On 07/16/2013 12:32 PM, Greg KH wrote: lkml rejects html email, care to resend this so that others can see it? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: driver model, duplicate names question

2013-07-16 Thread Srinivas Pandruvada
On 07/16/2013 12:32 PM, Greg KH wrote: On Tue, Jul 16, 2013 at 12:33:03PM -0700, Srinivas Pandruvada wrote: +Example Sys-FS Interface + +/sys/class/power_cap/intel-rapl +├── package-0 +│ ├── constraint-0 +│ │ ├── name +│ │ ├── power_limit_uw +│ │ └── time_window_us +│ ├── constra

Re: driver model, duplicate names question

2013-07-16 Thread Greg KH
On Tue, Jul 16, 2013 at 12:33:03PM -0700, Srinivas Pandruvada wrote: > >> +Example Sys-FS Interface > >> + > >> +/sys/class/power_cap/intel-rapl > >> +├── package-0 > >> +│ ├── constraint-0 > >> +│ │ ├── name > >> +│ │ ├── power_limit_uw > >> +│ │ └── time_window_us > >> +│ ├── cons

Re: driver model, duplicate names question

2013-07-16 Thread Srinivas Pandruvada
On 07/16/2013 12:04 PM, Greg KH wrote: A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top Glad to learn something new today. On Tue, Jul 16, 2013 at 11:54:31AM -0700, Srinivas Pandruvada wrote: Hi, I am assigned to do add a powercap class. There a

Re: driver model, duplicate names question

2013-07-16 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Tue, Jul 16, 2013 at 11:54:31AM -0700, Srinivas Pandruvada wrote: > Hi, > > I am assigned to do add a powercap class. There are several > technologies, which will allow to add a power budget to an

Re: driver model, duplicate names question

2013-07-16 Thread Srinivas Pandruvada
Hi, I am assigned to do add a powercap class. There are several technologies, which will allow to add a power budget to an individual device. For example, you can set a power budget to a individual physical cpu package, each core and uncore devices, GPUs, DRAM etc. +The Power Capping framewo

Re: driver model, duplicate names question

2013-07-16 Thread Greg KH
On Tue, Jul 16, 2013 at 11:29:42AM -0700, Srinivas Pandruvada wrote: > Thanks for the quick response. Here I am creating virtual devices using > device_register. > I have attached a simple test program, which will give error. > > This is my intention: > > $> cd /sys/class/test_class > $> ls > po

Re: driver model, duplicate names question

2013-07-16 Thread Srinivas Pandruvada
Thanks for the quick response. Here I am creating virtual devices using device_register. I have attached a simple test program, which will give error. This is my intention: $> cd /sys/class/test_class $> ls power_zone_cpu_package_0 power_zone_cpu_package_1 $> cd power_zone_cpu_package_0 $> ls

Re: driver model, duplicate names question

2013-07-16 Thread Greg KH
On Tue, Jul 16, 2013 at 09:34:57AM -0700, Srinivas Pandruvada wrote: > Hi Greg, > > I would like to create tree like structure using device model (struct > device, device_register/device_unregister) using parent/child > relationship while creation. I want to be able to create duplicate > names,

driver model, duplicate names question

2013-07-16 Thread Srinivas Pandruvada
Hi Greg, I would like to create tree like structure using device model (struct device, device_register/device_unregister) using parent/child relationship while creation. I want to be able to create duplicate names, when their parents are different, similar to a directory structure. I see that